[Python-ideas] Changing the default install location, script versioning (Packages and PEP 370)

Jesse Noller jnoller at gmail.com
Wed Jul 22 15:41:33 CEST 2009


On Tue, Jul 21, 2009 at 4:49 AM, Antoine Pitrou<solipsis at pitrou.net> wrote:
> Doug Hellmann <doug.hellmann at ...> writes:
>>
>> Why is the lib directory ~/.local/lib/pythonVERSION if ~/.local isn't
>> intended to support more than one version of the interpreter?
>
> Because scripts specify which version of the interpreter they use in their
> shebang line, so they don't need a versioned location.
> Conversely, libraries have no way to specify for which version of the
> interpreter they were installed, so their location needs to be
> versioned.
> (besides, it is common for a library to be installed for several interpreters
> because it may be required by several different apps)
>
> This is the same difference as between /usr/bin and
> /usr/lib/python-X.Y/site-packages.
>
> Regards
>
> Antoine.
>

I'm not dead yet! /monty python

I want to point out that the ./local/bin directory isn't the only
thing unversioned - any docs/ which get laid down by a package are
also being plopped in .local/docs - not .local/version/docs.



More information about the Python-ideas mailing list