[Distutils] python version information in .egg-info directory name

Phillip J. Eby pje at telecommunity.com
Tue Jul 4 16:09:10 CEST 2006

At 08:42 AM 7/4/2006 +0200, Matthias Klose wrote:
>Phillip J. Eby writes:
> > >what about installing the .egg-info directory without version
> > >information when --single-version-externally-managed is used?
> >
> > Note that the .pyc files will be built for a specific Python version;
> > that's why the version number is there.
>yes, but this shouldn't be necessary if you install into a path which
>is known to belong to a specific python version
>(i.e. /usr/lib/python2.4/site-pacakges)

Setuptools doesn't inspect the path it's installing to in order to know 
whether it happens to contain the Python version already.  :)  I don't see 
what problem you're trying to solve here.

> > >Another unrelated thing: Debian is supposed to ship the source code
> > >for binaries, but it's not included in the package for cli.exe and
> > >gui.exe. Could you point me to the source code and/or include it in
> > >the next release?
> >
> > It's included in the source release, along with all the 
> documentation.  The
> > file you're looking for is 'launcher.c'.  Of course, the .exe files aren't
> > used on non-Windows platforms anyway.
>at least with distutils I was able to build installers for Windows on
>Linux. I didn't check if that works with setuptools as well.

It should work fine for packages that don't have any scripts.  Scripts 
probably won't work correctly due to platform-specific path issues, and 
extension modules built for Linux obviously won't work on Windows as they 
won't even have the right extension in the filename.

More information about the Distutils-SIG mailing list