From 16b2cc93df1d640a3fd72ec513355b775eb0c30d Mon Sep 17 00:00:00 2001 From: DavoudTaghawiNejadWSP <90594653+DavoudTaghawiNejadWSP@users.noreply.github.com> Date: Mon, 31 Oct 2022 14:37:22 +0400 Subject: [PATCH 1/2] Add example in code As the package is called 'virtualenv-clone', but the command is 'clonevirtualenv', it is useful to provide an example. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index d88bd91..03a5ca0 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,19 @@ virtualenv cloning script. + [![Build Status](https://travis-ci.org/edwardgeorge/virtualenv-clone.svg?branch=master)](https://travis-ci.org/edwardgeorge/virtualenv-clone) A script for cloning a non-relocatable virtualenv. + +``` + +python -m clonevirtualenv /path/to/ /path/to/venv + +e.G. python -m clonevirtualenv /opt/miniconda3/ ./venv +``` +Clones the python installation into a virtual enviroment in the current derectory + Virtualenv provides a way to make virtualenv's relocatable which could then be copied as we wanted. However making a virtualenv relocatable this way breaks the no-site-packages isolation of the virtualenv as well as other aspects that From 15bb080f35af076cb0f511db39eb64cc96923ad2 Mon Sep 17 00:00:00 2001 From: DavoudTaghawiNejadWSP <90594653+DavoudTaghawiNejadWSP@users.noreply.github.com> Date: Mon, 31 Oct 2022 14:52:52 +0400 Subject: [PATCH 2/2] Remove example of cloning the python installation Remove example of cloning the python installation and add a note that cloning the python installation itself does not work. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 03a5ca0..846842b 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,7 @@ A script for cloning a non-relocatable virtualenv. python -m clonevirtualenv /path/to/ /path/to/venv -e.G. python -m clonevirtualenv /opt/miniconda3/ ./venv ``` -Clones the python installation into a virtual enviroment in the current derectory Virtualenv provides a way to make virtualenv's relocatable which could then be copied as we wanted. However making a virtualenv relocatable this way breaks @@ -42,4 +40,6 @@ It performs the following: - finally it double checks `sys.path` again and will fail if there are still paths from the old environment present. +This script clones virtual enviroments, it does not clone your python installation into a virtual environment. + NOTE: This script requires Python 2.7 or 3.4+