Skip to content

Creating Virtual Development Environments

29/05/2012

All developers, sooner or later, need to create an isolated and well-known environment for their work, which won’t affect or be affected by the hosting environment where the user works on.

This is a standard case that happens quite often while developing on Python.  There are many elegant solutions for this problem, and one of them is Virtualenv.

I summarize some notes extracted by program’s official documentation.

Some situations where this program is necessary:

  • We need the same library or component for two different programs, which they rely on different version.  Yet, both versions need to be installed in the development host.
  • Choosing carefully the versions of the components an application depends on.  Furthermore, after setting the application’s dependency list, it should not change so easily as an external system update.
  • Working on a shared host where the developer isn’t allowed to install libraries and other resources on common directories.

Alternatives

  • workingenv
  • virtual-python
  • zc.buildout
Advertisements

From → Programming, Python

Leave a Comment

What do you think?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: