-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip 20.3b1 bug with --pre for already installed package #9083
Comments
Thanks for catching this! According to PEP 440’s Local Version Segments section:
So we’re not doing the comparison correctly. |
For people following packaging discussions, this problem was actually discussed (theoretically at the time) in a recent thread: Escaping versions for wheel, sdist, and .dist-info names. The numpy wheel in question is escaping dot with an underscore, and the spec is vague on whether this should be done or not. |
It seems allowed, but either way it's not a numpy issue. The @uranusjr it's not clear to me that that also explains the first exception - does it, or is that an unrelated resolver issue? |
By the first exception I assume you mean try:
crit = self.state.criteria[name]
except KeyError:
crit = _calculate_criteria_differently(...) # This eventually calls the above assertion. And that handler blew up when it shouldn’t. |
* DEP: remove setup_requires. This doesn't seem to work anymore. Most people will be installing with pip, which will pick up pyproject.toml and install the needed deps. For people who want to keep using "python setup.py install", replace setup_requires with a printed error. Addresses #12727. * CI: break up travis_retry pip install commands, pin pip version Otherwise this installs pip 20.3b1 (unclear why), and that's broken in combination with the numpy nightly wheels with an underscore in the name (see pypa/pip#9083). Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
still getting the error |
@nagesh-chowdaiah what version of pip are you using? |
Environment
Description
After the release of pip 20.3b1 yesterday we started seeing issues on SciPy CI jobs that use
pip install --pre --upgrade numpy
. Here is a full build log: scipy/scipy#12729 (comment)There's two exceptions actually, the version normalization seems also to be missing somewhere. But it's the first exception that's the more problematic one.
Expected behavior
Package should be upgraded without any errors.
How to Reproduce
Here is a standalone reproducer:
Output
The text was updated successfully, but these errors were encountered: