Re: PEP-582 concerns

Steve Dower <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <[email protected]>
On 20Feb2019 0831, Nathaniel Smith wrote:
> Yeah, __pypackages__ has no way to handle scripts, and also no way to 
> access packages when you're running from a directory. Pipenv already 
> handles both of these cases fine today, so I'm not sure how having 
> __pypackages__ several years from now could help you.

Uh, it totally has both. It has no way to handle updating your 
terminal's environment for you, but it can put scripts *somewhere* ;)

It can also handle accessing packages when running from your project 
directory. If you meant subdirectory, sure, that would be a major 
security issue to do that (much as I want to), but if you meant "both 
scripts and -m don't work" then that's just incorrect.

That said, I prefer the approach of pipx 
(https://pypi.org/project/pipx/) for scripts anyway. It too has the 
problem of not updating your PATH for you, but at least it keeps tools 
separate from dependencies, as they should be.

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/5XYFHI556XMZLNOKPTOJJKFAE4F3AMUS/
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.