News for hackers. Stuff that matters.
Re:Debian discusses vendoring again by kstrauser on Wednesday January 13, 2021 @02:09PM (#25766616)
Pip has that feature now. Put this in your ~/.pip/pip.conf:

  [global]
  require-virtualenv = true
and then you get errors like:

  $ pip install foo
  ERROR: Could not find an activated virtualenv (required).
Re:Debian discusses vendoring again by nemetroid on Wednesday January 13, 2021 @02:40PM (#25766986)
That's not exactly the same. I might be fine with installing Python packages with pip into my home directory, just not /usr.
Re:Debian discusses vendoring again by kstrauser on Wednesday January 13, 2021 @03:34PM (#25767601)
My workflow's been to temporary disable that, do the stuff I need, then re-enable it. It's a bit clunky, but I don't install stuff outside a virtualenv frequently enough for it to be a major pain in the neck.
Re:Debian discusses vendoring again by skrtskrt on Wednesday January 13, 2021 @03:13PM (#25767359)
Yeah I use pyenv + virtualenvwrapper and there are a few packages I am fine with having in the top-level pyenv version, rather than in any particular virtual environment: black, requests, click, etc.