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
ipythonMAJ.MIN entry point has name of wheel building python #13815
Comments
@UltimateLobster, #13842 made it worse. The ipython-8.7.0-py3-none-any.whl from PyPI now installs an ipython3.10 even when you install it to python 3.9 or python3.11 |
Noticed it as well. Since the entry points are decided upon wheel creation time, this only installs the entrypoint of the python version that compiled the wheel. It will work correctly only when installing from source. I'm looking into the possibility of having a wheel that's specific to a minor version. |
Or just leave it alone and rely on the installing virtual environment mechanisms (venv, virtualenv, conda, ..) and distribution packagers. Who really needs an |
Yerp, this was a bummer downstream on conda-forge as well: we had to create a special, magic package just for this purpose, and it will complicate things later on down the line (e.g. when 3.12 lands). If only from that perspective, my vote would be for removing this feature entirely. |
Sometimes you just want to experiment without a specific environment just to test the features and differences between python versions. So I would still support the addition of this feature. That being said, I agree that this is merely a "nice to have" and therefore, should only be done if it's easy to do so. I didn't think about the possibility of entry points being statically decided at wheel time. As long as creating a wheel per minor version is not practical, and there is no official "good" way to support this feature, I sadly agree that it should be removed. I will continue to experiment with the known tools and see if there's an easy and practical way to do so. In the meantime, if no one has done it yet, I'll open a new request soon to revert the changes. I'll re-suggest this feature if and when a better way would arise. |
Experiments must be done in controlled environments, not on the system! If you If you still want to do this: Create wheels for each minor version with the correct |
Contrary to what the release notes say, #13743 does not have such effect on a
python setup.py install
orpip install
. The published wheel in PyPI does not have the entry points either, because it is minor-version agnostic:ipython-8.6.0-py3-none-any.whl::ipython-8.6.0.dist-info/entry_points.txt
Simple pip install from PyPI:
The text was updated successfully, but these errors were encountered: