I want to create one virtualenv
using another as the starting point, is this possible?
I have to use cases in mind:
Let's say I have a two
virtualenv
one for production and one for development. The development environment requires the same packages as the production environment, but it requires others I don't want in the production environment. I don't want to install the common packages twice.I want to experiment with a development version of a package, say
matplotlib
for example. The development version of the package has the same requirements as the stable version. So I create avirtualenv
calledmatplotib_stable
and install the requirements and the stable version. Then I create a secondvirtualenv
calledmatplotlib_dev
and usematplotlib_stable
as a starting point (for thematplotlib
requirements) but then I install the development version.
How do I install from a local cache with pip? seems to address the issue of downloading packages, but I don't think it deals with modifying sys.path
.