> On 20/2/2019, at 23:19, Steve Dower <steve.do...@python.org> 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 -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-le...@python.org
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/archives/list/distutils-sig@python.org/message/2IQOMDUV5F5DEGEKIEE2GPBTGBXAPNMH/

Reply via email to