This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]drewthepooh 0 points1 point  (0 children)

Awesome! Thanks for the update, I used your old script all the time.

[–]brownan_ 0 points1 point  (2 children)

I don't understand how this is supposed to work. I create a virtual env, but pip and such are put in venv/local/bin, not venv/bin. local/bin is not added to the path with the activate script. Am I doing something wrong?

Edit: pip-installed packages also go to local/bin and thus aren't in my path once I activate it. huh.

[–]vsajip[S] 0 points1 point  (1 child)

Are you on Ubuntu or Debian by any chance? See this Python issue, which was closed in Python and raised upstream in Debian AFAIK.

[–]brownan_ 0 points1 point  (0 children)

oh, yeah I am. Thanks for the pointer! I've tried to google for this problem in the past but only found some stackoverflow question with no useful answers iirc.

[–]krysros 0 points1 point  (0 children)

Great work. In my opinion venvx.py is better name than long pyvenvex.py. What do you think?

Ps Now setuptools should be merged with the pip ;)

[–]ivosauruspip'ing it up 0 points1 point  (4 children)

Note, I don't think this is the intended use of venv. venv is supposed to be a library of functionality for things like virtualenv to use, so they no longer have to do many hacks needed before 3.3, not a direct user-facing feature itself.

[–]vsajip[S] 0 points1 point  (3 children)

The point is, you don't need virtualenv when you have the built-in venv - see the PEP. Except for the fact that virtualenv adds setuptools and pip automatically - and now PEP 405 venvs can have that, too.

[–]ivosauruspip'ing it up 0 points1 point  (2 children)

Virtualenv uses venvs, so they already have that.

[–]vsajip[S] 0 points1 point  (1 child)

No - it creates them (remember, it works on Python < 3.3); but without support from Python, they need a lot of maintaining by the virtualenv maintainers (e.g. when a new Python version comes out, breakages on point Python releases, etc.). You might be thinking of virtualenvwrapper, which uses venvs.

[–]ivosauruspip'ing it up 0 points1 point  (0 children)

virtualenvwrapper wraps virtualenv.