Re: PEP-582 concerns

Tzu-ping Chung <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <[email protected]>
> On 20/2/2019, at 23:19, Steve Dower <[email protected]> wrote:
> 
> On 20Feb.2019 0533, Tzu-ping Chung wrote:
>> As one of the Pipenv maintainers, however, it is my personal opinion that this
>> PEP would not be end up in the “yet another standard” situation, but even be
>> beneficial to Pipenv, if done correctly.
>> 
>> I hope this can provide some confidence :)
> 
> I'd love to hear more about how Pipenv would make use of it. So far it's
> only really been designed with pip in mind (and their team in the
> discussion), but we've explicitly left it _very_ tool independent. So if
> you can describe how it would work with Pipenv, that would be helpful
> for finding things that need changing.

When you run `pipenv install` (roughly analogous to pip install -r), Pipenv
creates a virtual environment somewhere on the machine (depending on
various configurations), and install packages into it. Afterward the user can
run commands like `pipenv run python`, and Pipenv would activate the
virtual environment for the command.

With PEP 582, __pypackages__ can be used instead of virtual environments,
and since “activation” is done automatically by the interpreter and pip,
`pipenv run` can do less than it currently needs to.

There are still some ergonomics problems, e.g. how does Pipenv know what
Python version to install into, but I don’t think there’s anything in the PEP at
the moment that would make the adoption impossible. We’ll definitely try
to be heard if any blockers appear :)


> 
> Also, the `pythonloc` package is an implementation of this that anyone
> can try out today - https://pypi.org/project/pythonloc/ (the major
> difference is that when implemented, you won't have to use "pythonloc"
> and "piploc" to get the new behaviour).
> 
> Cheers,
> Steve
--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/2IQOMDUV5F5DEGEKIEE2GPBTGBXAPNMH/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.