1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
6 name = python-setuptools
10 thisapp = setuptools-%{version}
12 maintainer = Michael Tremer <michael.tremer@ipfire.org>
13 groups = Development/Libraries
14 url = http://pypi.python.org/pypi/setuptools
15 license = Python or ZPLv2.0
16 summary = Easily build and distribute Python packages.
19 Setuptools is a collection of enhancements to the Python distutils
20 that allow you to more easily build and distribute Python packages,
21 especially ones that have dependencies on other packages.
32 # Scripts seem to have a wrong hashbang
33 find . -name "*.py" | xargs sed -i "1s@^#!python@#!/usr/bin/python@"
37 CFLAGS="%{CFLAGS}" python setup.py build
41 python setup.py install --skip-build --root=%{BUILDROOT}
43 # XXX %{PYTHON_EXTRACT_EGG} /usr/lib/python*/site-packages/%{name}*.egg
44 rm -vf %{BUILDROOT}/usr/lib/python*/site-packages/setuptools/*.exe