setuptools site-package pollution

Hi all.. Firstly, I would like to say thanks for the setuptools package, which I was introduced to after reading about the RuleDispatch package on the IBM developerworks charming python series. Oh btw. RuleDispatch is the most useful python package that I have seen in the last year in the python world, so thanks for that also ;) Now that the congrats and hugs are out of the way, I would like to ask a question. How can I tell setuptools not to put packages, such as dispatch, protocols, and setuptools, in a subdirectory named the same as the egg and to just put the package name. For example from pydoc I currently get: c:\python\lib\site-packages\ruledispatch-0.5a0.dev_r2100-py2.4-win32.egg dispatch (package) c:\python\lib\site-packages\pyprotocols-1.0a0dev_r2082-py2.4-win32.egg dispatch protocols (package) c:\python\lib\site-packages\setuptools-0.6a8-py2.4.egg easy_install pkg_resources setuptools (package) site what I would like to see is just: ..\site-packages dispatch (package) ..\site-packages protocols (package) ..\site-packages setuptools (package) Maybe it is just a pet-peeve, but I like to keep a nice tidy site-packages directory, and these long directory names just seem to me to be pollution of my site-packages directory in my command shell. If there is an option to have just the packages, I would really appreciate someone telling me what it is. If not maybe it could be considered, and to put whatever meta-data the directory names are providing somewhere else.. Thanks, Anthony

Anthony Tarlano wrote:
Hi all..
Firstly, I would like to say thanks for the setuptools package, which I was introduced to after reading about the RuleDispatch package on the IBM developerworks charming python series. Oh btw. RuleDispatch is the most useful python package that I have seen in the last year in the python world, so thanks for that also ;) I read this posting, made me curious about RuleDispatch, but I cant find a hint about this package! Is it dead, or just in artificial sleep? ....

At 10:29 AM 10/10/2006 -0400, Pierre Imbaud wrote:
Anthony Tarlano wrote:
Hi all..
Firstly, I would like to say thanks for the setuptools package, which I was introduced to after reading about the RuleDispatch package on the IBM developerworks charming python series. Oh btw. RuleDispatch is the most useful python package that I have seen in the last year in the python world, so thanks for that also ;) I read this posting, made me curious about RuleDispatch, but I cant find a hint about this package! Is it dead, or just in artificial sleep? ....
See http://www.eby-sarna.com/pipermail/peak/2006-May/002534.html for the details. RuleDispatch is on life support: it is available only via SVN and I'm doing only bug fixes. Python 2.5 is not currently supported, in part due to grammar changes that affect RuleDispatch's parser and in part due to the fact that Pyrex does not support Python 2.5's new-style exceptions yet. I've also just released 'simplegeneric', a super-simple single-dispatch generic function implementation in 100 lines of Python, with no dependencies (except that it uses setuptools for installation). An in-development version of PEAK-Rules is also available via SVN; it does not support predicate dispatch yet, but so far does support multiple dispatch and method combining. PEAK-Rules has a much better test suite than RuleDispatch, as it has been test-first developed from the ground up. (As was 'simplegeneric'.) RuleDispatch was first written before I was truly "test infected". Anyway, this subject is off-topic for distutils-sig, though, so please send any reply via the PEAK mailing list.
participants (3)
-
Anthony Tarlano
-
Phillip J. Eby
-
Pierre Imbaud