1
0
forked from ports/contrib

20 lines
740 B
Plaintext
Raw Normal View History

2006-11-20 07:26:53 +10:00
# Description: A collection of enhancements to the Python distutils.
# URL: http://peak.telecommunity.com/DevCenter/setuptools
2008-03-26 13:45:31 +11:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: James Mills, prologic at shortcircuit dot net dot au
# Depends on: python
2006-11-14 09:01:22 +10:00
name=setuptools
2010-11-13 14:10:21 +11:00
version=0.6c11
2007-07-18 19:48:51 +10:00
release=1
2011-01-11 23:08:31 +11:00
source=(http://pypi.python.org/packages/source/s/$name/$name-$version.tar.gz)
2006-11-14 09:01:22 +10:00
build() {
local PYTHONVERSION=`python -c "import sys; print \"%s.%s\" % (sys.version_info[0], sys.version_info[1]);"`
cd $name-$version
2008-03-07 11:00:08 +11:00
python setup.py install --root=$PKG
echo "/usr/lib/python$PYTHONVERSION/site-packages/setuptools-$version-py$PYTHONVERSION.egg" > \
$PKG/usr/lib/python$PYTHONVERSION/site-packages/setuptools.pth
}