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

pytest wheel shouldn't contain py.test-2.7 entry point #1487

Closed
remcohaszing opened this issue Mar 27, 2016 · 2 comments
Closed

pytest wheel shouldn't contain py.test-2.7 entry point #1487

remcohaszing opened this issue Mar 27, 2016 · 2 comments

Comments

@remcohaszing
Copy link

The pytest wheel is built with a hardcoded entry point named py.test-2.7.

As a result, this executable is always installed in the environment.

One would expect this would run py.test using Python 2.7, but this really just refers to whatever Python version was used to install it.

$ mktmpenv --python python3
Using base prefix '/usr'
New python executable in /home/remco/.cache/virtualenvwrapper/tmp-d8a0ac7580ca90b/bin/python3
Also creating executable in /home/remco/.cache/virtualenvwrapper/tmp-d8a0ac7580ca90b/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /home/remco/.cache/virtualenvwrapper/tmp-d8a0ac7580ca90b/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/remco/.cache/virtualenvwrapper/tmp-d8a0ac7580ca90b/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/remco/.cache/virtualenvwrapper/tmp-d8a0ac7580ca90b/bin/preactivate
virtualenvwrapper.user_scripts creating /home/remco/.cache/virtualenvwrapper/tmp-d8a0ac7580ca90b/bin/postactivate
virtualenvwrapper.user_scripts creating /home/remco/.cache/virtualenvwrapper/tmp-d8a0ac7580ca90b/bin/get_env_details
This is a temporary environment. It will be deleted when you run 'deactivate'.
(tmp-d8a0ac7580ca90b) ~/.cache/virtualenvwrapper/tmp-d8a0ac7580ca90b$ pip install pytest
Collecting pytest
  Using cached pytest-2.9.1-py2.py3-none-any.whl
Collecting py>=1.4.29 (from pytest)
  Using cached py-1.4.31-py2.py3-none-any.whl
Installing collected packages: py, pytest
Successfully installed py-1.4.31 pytest-2.9.1
(tmp-d8a0ac7580ca90b) ~/.cache/virtualenvwrapper/tmp-d8a0ac7580ca90b$ which py.test-2.7 
/home/remco/.cache/virtualenvwrapper/tmp-d8a0ac7580ca90b/bin/py.test-2.7

I think the simplest solution would be to simply remove this entry point, as I personally don't see why anyone would ever use such a postfixed executable anyway.

@davehunt
Copy link
Contributor

We've discussed removing all py.test* entry points in #1632

@nicoddemus
Copy link
Member

Fixed in #1662

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