[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Python 3.4 and ensurepip (rehashed, long)



On Mar 26, 2014, at 9:16 AM, Piotr Ożarowski <piotr@debian.org> wrote:

> [Donald Stufft, 2014-03-26]
>> On Mar 26, 2014, at 9:12 AM, Piotr Ożarowski <piotr@debian.org> wrote:
>>> [Barry Warsaw, 2014-03-25]
>>>> One of the things I'd like to see, in addition to supporting
>>>> platform-specified system-level installation directories
>>>> (i.e. /usr/local/lib/pythonX.Y/dist-packages on Debian), is an upstream switch
>>>> to tell Python to ignore this directory, mirroring e.g. -s.  That way, if
>>>> people say "Well I just pip installed foo into /usr/local and it broke my
>>>> system" we'd be able to respond "you better use pythonX.Y --dont-blame-us".
>>> 
>>> I like the idea (where --dont-blame-us simply disables support for
>>> .egg/.zip/.whl in the interpreter, assuming pip/easy_install installs
>>> zips instead of unpacking them)
>> 
>> Pip does not install as an .egg or a .whl. It doesn’t use .egg at all and regardless
>> of which format it downloads it unpacks it and installs it. There is no difference in
>> format between what pip installs and any debian package I’ve ever looked at.
> 
> then --dont-blame-us has to mean removing /usr/local from sys.path
> -- 
> Piotr Ożarowski                         Debian GNU/Linux Developer
> www.ozarowski.pl          www.griffith.cc           www.debian.org
> GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-python-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 20140326131639.GE30037@sts0.p1otr.com">https://lists.debian.org/[🔎] 20140326131639.GE30037@sts0.p1otr.com
> 

In my half formed idea in my head the way it’d work is there’d be a vendor-packages
directory where downstream can install things to, and a flag to the interpreter to
remove the typical site-packages. So then you’d get something like:

    python -I —no-site-packages -m something

-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


Reply to: