Skip to content

virtualenv wheel's entry-point script is version specific to the python its built with #586

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

Closed
Ivoz opened this issue Mar 28, 2014 · 3 comments

Comments

@Ivoz
Copy link

Ivoz commented Mar 28, 2014

Instead, it should be version specific to the python it's installed with. Possible solutions:

  • just remove the version-specific script all together
  • build separate wheels for every supported python version (with that version of python) so this is never encountered
  • Find some other way to create version specific scripts with wheels
  • Stop providing wheels for virtualenv

i.e,

C:\Users\Ivo>pip -V
pip 1.5.4 from C:\Python33\lib\site-packages (python 3.3)

C:\Users\Ivo>pip install virtualenv
Downloading/unpacking virtualenv
Installing collected packages: virtualenv
Successfully installed virtualenv
Cleaning up...

C:\Users\Ivo>virtualenv-2.7
You must provide a DEST_DIR
Usage: virtualenv-2.7 [OPTIONS] DEST_DIR

...

And C:\Python33\Scripts\virtualenv-2.7.exe exists. It should be virtualenv-3.3.exe, or just remove it.

From https://github.com/pypa/virtualenv/blob/develop/setup.py#L12

@pfmoore
Copy link
Member

pfmoore commented Mar 28, 2014

Confirmed. From conversation in IRC, this is a bug in virtualenv's setup.py which generates a console entry point with the version of Python used at build time embedded.

Short term fix is to remove that entry point altogether. Longer term, if a versioned command is required, will need a means of capturing that in metadata.

@pfmoore
Copy link
Member

pfmoore commented Mar 28, 2014

Sorry, I confused 2 different issues. You already enumerated the solutions.

My vote is to remove the versioned entry point now, and bring the question of versioned entry points up on distutils-sig, as I think it's a wider issue that affects far more than just virtualenv.

@dstufft dstufft mentioned this issue Jan 5, 2015
5 tasks
@stale
Copy link

stale bot commented Jan 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just add a comment if you want to keep it open. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 15, 2019
@stale stale bot closed this as completed Jan 22, 2019
@pypa pypa locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants