Hi! Please find attached setuptools-0.6_alpha5.ebuild. setuptools is a collection of enhancements to the Python distutils (for Python 2.3 and up) that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages. Packages built and distributed using setuptools look to the user like ordinary Python packages based on the distutils. Your users don't need to install or even know about setuptools in order to use them, and you don't have to include the entire setuptools package in your distributions. By including just a single bootstrap module (a 7K .py file), your package will automatically download and install setuptools if the user is building your package from source and doesn't have a suitable version already installed. I suggest dev-python/setuptools. Geoff
Created attachment 69960 [details] setuptools-0.6_alpha5.ebuild
- the src_unpack function should be superfluous.
Created attachment 70014 [details] setuptools-0.6_alpha5.ebuild with src_unpack() removed
It's broken: it installs under /usr/lib/python2.3/site-packages/setuptools-0.6a5-py2.3.egg/ and easy_install doesn't works, since pkg_resources.py is there and it is not in PYTHONPATH
Created attachment 70419 [details] setuptools-0.6_alpha5.ebuild with PYTHONPATH fixed This version creates a .pth file in /usr/lib/python2.x/site-packages to add the setuptools .egg directory to the PYTHONPATH. This is a similar approach to what dev-python/numeric does, so there is a precedent. setuptools has to be installed into a .egg directory in site-packages because it's inherent to how it works.
Added to CVS. Thanks Geoffry and Thomas. I couldn't get easy_install to work with amd64 due to a bug in Python's ziplib unless using python-2.4.2, so I upped the deps for now.