1 |
|
### RPM external py2-setuptools 0.6c9 |
2 |
< |
## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages |
2 |
> |
## INITENV +PATH PYTHONPATH %i/$PYTHON_LIB_SITE_PACKAGES |
3 |
|
|
4 |
|
Source: http://pypi.python.org/packages/source/s/setuptools/setuptools-%realversion.tar.gz |
5 |
|
Requires: python |
13 |
|
%install |
14 |
|
python setup.py install --prefix=%i --single-version-externally-managed --record=/dev/null |
15 |
|
find %i -name '*.egg-info' -exec rm {} \; |
16 |
+ |
rm -f %i/$PYTHON_LIB_SITE_PACKAGES/setuptools/*.exe |
17 |
|
for f in %i/bin/easy_install*; do perl -p -i -e 's{.*}{#!/usr/bin/env python} if $. == 1 && m{#!.*/bin/python}' $f; done |