Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108227 - setuptools-0.6_alpha5.ebuild (New Package)
Summary: setuptools-0.6_alpha5.ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-10-05 16:41 UTC by Geoffrey Clements
Modified: 2005-10-14 22:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
setuptools-0.6_alpha5.ebuild (setuptools-0.6_alpha5.ebuild,616 bytes, text/plain)
2005-10-05 16:42 UTC, Geoffrey Clements
Details
setuptools-0.6_alpha5.ebuild with src_unpack() removed (setuptools-0.6_alpha5.ebuild,585 bytes, text/plain)
2005-10-06 14:08 UTC, Geoffrey Clements
Details
setuptools-0.6_alpha5.ebuild with PYTHONPATH fixed (setuptools-0.6_alpha5.ebuild,846 bytes, text/plain)
2005-10-11 14:48 UTC, Thomas Fullhart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoffrey Clements 2005-10-05 16:41:51 UTC
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
Comment 1 Geoffrey Clements 2005-10-05 16:42:32 UTC
Created attachment 69960 [details]
setuptools-0.6_alpha5.ebuild
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-10-05 17:27:11 UTC
- the src_unpack function should be superfluous.
Comment 3 Geoffrey Clements 2005-10-06 14:08:23 UTC
Created attachment 70014 [details]
setuptools-0.6_alpha5.ebuild with src_unpack() removed
Comment 4 Gustavo Sverzut Barbieri 2005-10-11 09:59:35 UTC
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
Comment 5 Thomas Fullhart 2005-10-11 14:48:38 UTC
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.
Comment 6 Rob Cakebread (RETIRED) gentoo-dev 2005-10-14 22:44:24 UTC
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.