Skip to content

Commit 008383a

Browse files
authoredOct 13, 2024
Merge pull request #109 from claudia-blanc/update-mkvirtualenv-help
Update mkvirtualenv help to document -p/--python option
2 parents d5371da + 6d2f603 commit 008383a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
 

‎docs/source/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ or::
5757
Depending on your MSYS setup, you may need to install the `MSYS mktemp
5858
binary`_ in the ``MSYS_HOME/bin`` folder.
5959

60-
.. _MSYS mktemp binary: https://sourceforge.net/projects/mingw/files/MSYS/
60+
.. _MSYS mktemp binary: https://sourceforge.net/projects/mingw/files/MSYS/Extension/mktemp/
6161

6262
PowerShell
6363
----------

‎virtualenvwrapper.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ function virtualenvwrapper_verify_active_environment {
374374

375375
# Help text for mkvirtualenv
376376
function virtualenvwrapper_mkvirtualenv_help {
377-
echo "Usage: mkvirtualenv [-a project_path] [-i package] [-r requirements_file] [virtualenv options] env_name"
377+
echo "Usage: mkvirtualenv [-a project_path] [-i package] [-r requirements_file] [-p python_interpreter] [virtualenv options] env_name"
378378
echo
379379
echo " -a project_path"
380380
echo
@@ -390,6 +390,12 @@ function virtualenvwrapper_mkvirtualenv_help {
390390
echo
391391
echo " Provide a pip requirements file to install a base set of packages"
392392
echo " into the new environment."
393+
echo
394+
echo " -p python_interpreter, --python=python_interpreter"
395+
echo
396+
echo " The Python interpreter to use for the new environment."
397+
echo " This can be specified as -p python3.8 or --python=/path/to/python"
398+
echo
393399
echo;
394400
echo 'virtualenv help:';
395401
echo;

0 commit comments

Comments
 (0)