-
-
Notifications
You must be signed in to change notification settings - Fork 546
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
Old installed version of Cython is used #21441
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:5
Wow, I see the issue. When you use pip with the |
comment:6
I think the easiest thing to do for now would be to make |
comment:7
Replying to @embray:
That is not entirely trivial because you need to figure out which package to uninstall. You cannot do Other than that, I like the idea. We could probably drop the |
This comment has been minimized.
This comment has been minimized.
comment:8
Replying to @jdemeyer:
Fair point. A broader idea I had is that as many of the I'm sort of of the mind that
I don't know what you mean here. If |
comment:9
I think what pip really needs here is an option to explicitly ensure that conflicting packages are uninstalled, even if I said |
Branch: u/embray/sage-pip-install |
comment:10
Here's an initial stab at a fix. Adds a new In the process I found out that Cython's New commits:
|
Commit: |
Author: Erik Bray |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:13
|
comment:14
Replying to @embray:
The whole point of adding |
comment:15
Replying to @embray:
Is Cython the only misbehaving package? If so, I would rather add cython/cython#1455 in order to simplify |
comment:16
Replying to @jdemeyer:
Sure, will do. |
comment:17
Replying to @jdemeyer:
That makes sense. I think for the purposes of this ticket we shouldn't mess with it though--it's already working as is (minus this issue). I'd rather get the uninstallation fixed, and then worry about further tweaking the install options. I'm also going to write up something about this experience for the pip mailing list. As |
comment:18
Replying to @jdemeyer:
There are a few others I've found:
I've already opened an issue for matplotlib, though I don't have a patch. I think the check is good to leave in even if these are fixed because you never know when another package is going to be added, or updated in such a way that it breaks this. |
comment:19
I see. For |
comment:47
Replying to @embray:
Can you give a little more detail? |
comment:48
In other words: what would you like me to do concretely? |
comment:49
Remove any changes to |
comment:51
Not fully tested yet, but this reverts all changes to |
comment:52
Looks good to me. |
comment:53
Reviewer name... |
comment:55
The patch bumps the version numbers of dozens of packages without making changes to them. This seems unnecessary. |
Reviewer: Jeroen Demeyer, Erik Bray, Matthias Koeppe |
comment:57
Replying to @mkoeppe:
This patch does make implicit changes to all those In any case, if this is merged with #21552, then all Python packages need to be rebuilt anyway so it wouldn't matter. |
comment:58
I don't personally think it's terribly important to bump all these package versions since it doesn't actually change all of them--for example packages that did not use setuptools (and thus are not installed as .egg directories) really aren't changed at all. For those that are changed, this changes some small details about how they are installed, but nothing about how they run. That said, strictly speaking, Jeroen is right that this does change runtime behavior since it will change what |
Changed branch from u/jdemeyer/sage-pip-install to |
comment:60
OK, thanks for the explanation. |
Changed commit from |
On a machine which had an older version of Cython installed but which was upgraded recently after #20218 was merged:
Despite Cython-0.24.1 being available, the older version 0.23.3 is still used by default. This causes breakage when building the Sage library.
The problem is not limited to Cython, the same happens for other packages too.
This is a blocker ticket since it breaks upgrades from older Sage versions.
Steps to reproduce:
./sage --sh -c 'easy_install cython==0.23.3'
# Install an older version of Cython../sage -f cython
# Rebuild the Cython in Sage. This should uninstall the old version but it doesn't.Note to the release manager: ideally, this would be merged together with #21552 since both tickets trigger recompilation of all Python packages.
CC: @embray
Component: build
Author: Erik Bray, Jeroen Demeyer
Branch:
8fd8273
Reviewer: Jeroen Demeyer, Erik Bray, Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/21441
The text was updated successfully, but these errors were encountered: