[Distutils] Package name != filename, and: Python version information
Phillip J. Eby
pje at telecommunity.com
Fri Feb 23 21:47:41 CET 2007
At 08:52 AM 2/20/2007 +0100, Samuel Abels wrote:
>On Fri, 2007-02-23 at 11:27 -0500, Phillip J. Eby wrote:
> > Setuptools fixes this, and various other problems with distribution
> > filenames. Unfortunately, changing this behavior in the distutils would
> > result in backward incompatibilities for people who are relying on its
> > current behavior.
>
>Thanks, I was not aware of setuptools.
>
>Unfortunately, my script has to run on a hosted server where I can not
>install this package.
setuptools can be installed to any PYTHONPATH directory; see:
http://peak.telecommunity.com/DevCenter/EasyInstall#custom-installation-locations
Especially the sections on "Creating a Virtual Python" and "Traditional
PYTHONPATH-based installation". The "Creating a Virtual Python" may be
especially useful to you, as it creates a virtual Python installation that
gives you complete access to site-packages and the ability to install
whatever packages you want, whether they're setuptools-based or not.
> Is there any workaround that I could use?
For the file-naming problem, I don't know of any, no. For the "can't
install packages on a hosted server" problem, see the above for a
workaround. :)
More information about the Distutils-SIG
mailing list