virtualenvwrapper-win icon indicating copy to clipboard operation
virtualenvwrapper-win copied to clipboard

Add -p switch feature to documentaion/readme

Open Tset-Noitamotua opened this issue 9 years ago • 4 comments

It would be nice to have a -p switch to be able to create a virtualenv with specific Python version, e.g.

mkvirtualenv -p 2.7 FOO_BAR

Tset-Noitamotua avatar Jul 11 '16 17:07 Tset-Noitamotua

Doesn't that option already exist?

C:\>mkvirtualenv -h
Usage: virtualenv [OPTIONS] DEST_DIR

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -v, --verbose         Increase verbosity.
  -q, --quiet           Decrease verbosity.
  -p PYTHON_EXE, --python=PYTHON_EXE
                        The Python interpreter to use, e.g.,
                        --python=python2.5 will use the python2.5 interpreter
                        to create the new environment.  The default is the
                        interpreter that virtualenv was installed with
                        (c:\python27\python.exe)
[...]

Granted, it seems you have to provide the full path to the Python executable generally.

cbdelavenne avatar Jul 12 '16 13:07 cbdelavenne

Indeed! Thanks, I was not aware of it´s existence.

Why? May be it should be mentioned in readme´s Main Commands section ;-) ... I changed title of this issue accordingly.

Also that -h option is worth to mention in readme or alternatively help information should be shown by default when calling mkvirtualenv without args.

Btw: This is one of the best python tools on Windows!

Tset-Noitamotua avatar Jul 13 '16 06:07 Tset-Noitamotua

No other flags are documented in the readme, so that's a -1 from me.

mkvirtualenv without arguments ought to display help, today it displays:

c:\srv> mkvirtualenv

    Pass a name to create a new virtualenv

c:\srv>

thebjorn avatar Aug 03 '17 15:08 thebjorn

mkvirtualenv without arguments is now the same as mkvirtualenv -h (PR #82). I'm very open to any PRs on the documentation.

thebjorn avatar Aug 11 '17 13:08 thebjorn