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 = distribute-%{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.
24 source_dl = http://pypi.python.org/packages/source/d/distribute/
32 # Scripts seem to have a wrong hashbang
33 for file in setuptools/command/easy_install.py distribute_setup.py ; do
34 sed -i '1s|^#!python|#!/usr/bin/python|' $file
37 # Fix file permissions.
38 chmod -R 644 %{DIR_APP}/distribute.egg-info
42 CFLAGS="%{CFLAGS}" python setup.py build
46 python setup.py install --skip-build --root=%{BUILDROOT}
48 # XXX %{PYTHON_EXTRACT_EGG} /usr/lib/python*/site-packages/%{name}*.egg
49 rm -vf %{BUILDROOT}/usr/lib/python*/site-packages/setuptools/*.exe
50 rm -rvf %{BUILDROOT}/usr/lib/python*/site-packages/setuptools/tests