Skip to content

Detailed virtualenv example#45

Merged
kennethreitz merged 3 commits into
realpython:masterfrom
gggritso:virtualenv-details
Dec 30, 2011
Merged

Detailed virtualenv example#45
kennethreitz merged 3 commits into
realpython:masterfrom
gggritso:virtualenv-details

Conversation

@gggritso
Copy link
Copy Markdown
Contributor

Not sure if it's overkill, but I wanted to add a more detailed example of how virtualenv actually works in practice. Besides, I thought it would be nice to cover this before recommending virtualenvwrapper to someone.

Comment thread docs/starting/dev-env.rst
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I try to avoid env, venv, etc for my virtualenvs. It makes them too hard to distinguish between them when they're activated.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll agree with this sentiment, in general. The reason why I usually stick with "venv" is that I try to force myself to single-task, so I'm never actively juggling environments. The (venv) in the prompt is just there to let me know what I'm in an active virtual environment. That said, I think you're probably right.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps you're right. Having a single, short string is probably useful. It enforces a discipline of focus.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think venv is fine as a generic example. Anything is better than virtualenv ., which everyone was pushing for years. shudders

@kennethreitz
Copy link
Copy Markdown
Contributor

This is fantastic, thanks!

✨ 🍰 ✨

kennethreitz pushed a commit that referenced this pull request Dec 30, 2011
@kennethreitz kennethreitz merged commit fedc03c into realpython:master Dec 30, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants