[Distutils] shebang line modified by setuptools

Barry Warsaw barry at python.org
Sun Apr 13 18:42:43 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Apr 13, 2008, at 8:04 AM, Gael Varoquaux wrote:
> On Sun, Apr 13, 2008 at 07:59:21AM -0400, Barry Warsaw wrote:
>> On Apr 12, 2008, at 9:41 PM, Stephen Waterbury wrote:
>
>>> I used to always set up my own Python[s] in /usr/local
>>> and put that first in my PATH, but I have gotten lazy lately, and
>>> sometimes it will bite me. ;)
>
>> On Debian and derivatives (e.g. Ubuntu) you might have even more fun.
>> They put /usr/local/lib/pythonX.Y/site-packages on the sys.path *of
>> the system python*!  This means that you can break your system Python
>> by installing a version of Python from source and then distutil'ing
>> things into there.  Astoundingly, this is promoted as a feature.
>
> I want it like that. You are confusing /opt and /usr/local.
>
> This is the way I expect things to work. I do not want to install my  
> own
> packages in "/usr/lib/pythonX.Y/site-packages". This is for apt to  
> deal
> with, not for me.

Actually, the solution that I believe is a good compromise is to find  
some other path in /usr/local to augment the system Python's sys.path  
with.  All I'm saying is that Python itself uses /usr/local/lib/ 
pythonX.Y/site-packages as the default from-source path, so if Debian  
wants a /usr/local path, it can pick some other subdirectory path and  
still meet its goals.  BTW, I believe Debian is unique here.  I talked  
to the Fedora guys and I've talked to a few Gentoo guys and both  
seemed surprised by Debian's policy here.

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iQCVAwUBSAI4A3EjvBPtnXfVAQLeagP/aCKr6WL+qvvM8vhABFxJDBbOJw1hQUQT
fCUwL3bZ21a6iKiHLv5mdVBfaFjcqEmnbGqizUmTgnTuG+SaUXHNqBBG2lDCTZUF
fNwWThN/TRtqO5OdknqFcfTQARtBE+YN52CpugjSmRrudZtAAdslWds8HnUP3nlG
kN9J0TsEo1E=
=DDbJ
-----END PGP SIGNATURE-----


More information about the Distutils-SIG mailing list