This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Anthony Sottile
Recipients Anthony Sottile
Date 2020-02-16.19:21:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581880911.6.0.392245585345.issue39656@roundup.psfhosted.org>
In-reply-to
Content
This is distilled from a larger example to be small/silly, however this caused real problems

A script which was intended for python3.6 exactly was written as follows:

```
#!/usr/bin/env python3.6
...
```

when creating a virtualenv with `python3.6 -m venv venv36` you end up with `python` / `python3` / `python3.6` executables in the venv

however, when creating a virtualenv with `python3 -m venv venv36` you only end up with `python` / `python3` executables

___

using `-mvirtualenv` (pypa/virtualenv) instead of venv, all three are reliably created

___

the fix is fairly straightforward, adding `f'python3.{sys.version_info[0]}'` to this tuple: https://github.com/python/cpython/blob/c33bdbb20cf55b3a2aa7a91bd3d91fcb59796fad/Lib/venv/__init__.py#L246
History
Date User Action Args
2020-02-16 19:21:51Anthony Sottilesetrecipients: + Anthony Sottile
2020-02-16 19:21:51Anthony Sottilesetmessageid: <1581880911.6.0.392245585345.issue39656@roundup.psfhosted.org>
2020-02-16 19:21:51Anthony Sottilelinkissue39656 messages
2020-02-16 19:21:51Anthony Sottilecreate