Reputation: 39343
I'm trying something simple. I clone a repository and then I want to create a virtualenv in it:
hg clone ssh://[email protected]/neves/repo site
virtualenv site
When I run the command to create a Python virtualenv in an exiting project, a directory named local is created. All the contents of the "site" dir are copied to this local dir. I don't want this behaviour. Am I doing something wrong? How do I create a virtualenv without creating this local dir?
I'm using virtualenv 1.10.1
Upvotes: 29
Views: 35440
Reputation: 5054
Not sure if it is still helpful, but you can do this.
virtualenv .
Install was fine with me.
Upvotes: 59
Reputation: 2101
This just happens on some platforms (like Ubuntu) and is necessary because a virtualenv imitates the machine's installation, and local
is part of that. Just add it to your SCM's ignore facility (e.g. .gitignore
).
Upvotes: 4