Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -p switch feature to documentaion/readme #67

Open
Tset-Noitamotua opened this issue Jul 11, 2016 · 4 comments
Open

Add -p switch feature to documentaion/readme #67

Tset-Noitamotua opened this issue Jul 11, 2016 · 4 comments

Comments

@Tset-Noitamotua
Copy link

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

@cbdelavenne
Copy link

cbdelavenne commented Jul 12, 2016

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.

@Tset-Noitamotua
Copy link
Author

Tset-Noitamotua commented Jul 13, 2016

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 Tset-Noitamotua changed the title Feature Request: add -p switch for Python version Add -p switch feature to documentaion/readme Jul 13, 2016
@thebjorn
Copy link
Collaborator

thebjorn commented Aug 3, 2017

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 added a commit that referenced this issue Aug 11, 2017
Implement -a, -i, and -r options to mkvirtualenv.
This solves #60, part of #67 (mkvirtualenv without parameters is now the same as mkvirtualenv -h), and
#68.
@thebjorn
Copy link
Collaborator

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

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

No branches or pull requests

3 participants