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
Upgrading from older Python versions doesn't work #24605
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
New commits:
|
Commit: |
comment:5
I don't like the idea of removing the existing libs before building. Let me think about this a bit. |
comment:6
OK, I'll let you think a bit. But if you cannot come up with a better solution, please accept this one which works. |
comment:7
It is annoying that, in this sense, Python's build process is basically incompatible with setting a custom rpath. I wonder if this has been discussed anywhere else. |
comment:8
The unusual thing about Python is that it actually runs itself as part of the build process... |
comment:9
Just wanted to point out that we should fix this before the next Python upgrade. But as there isn't even a plan for 2.7.15 at the moment, that doesn't look urgent. |
comment:10
Python 2.7.15 is planned for the end of this month. |
Reviewer: Erik Bray |
comment:11
I'm okay with it as a temporary solution. I think a better solution is needed in the long term, but that could come more or less automatically with #22510 (which would simplify completely uninstalling a package before upgrading it). I'm working on updating that work again so that we can start using it soon, hopefully. |
Author: Jeroen Demeyer |
comment:13
I feel like I'm missing something: the ticket description deals with Python 2 but the branch only deals with Python 3. What's going on? |
comment:14
There is a symlink from the Python 2 build scripts to the Python 3 build scripts. |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. This was a forced push. New commits:
|
comment:16
Rebased to 8.2.rc3 |
Changed branch from u/jdemeyer/upgrading_from_older_python_versions_doesn_t_work to |
This has been reported several time on sage-devel but now I finally managed to reproduce it.
The builds ends with
The problem is that the Python build system imports
ctypes
at build-time but this will use the wrong version of libpython. The build system tried to work around that withHowever, this affects building only, not running. And even using
LD_LIBRARY_PATH
won't work since an rpath takes priority over that.CC: @embray
Component: packages: optional
Author: Jeroen Demeyer
Branch/Commit:
379adfd
Reviewer: Erik Bray
Issue created by migration from https://trac.sagemath.org/ticket/24605
The text was updated successfully, but these errors were encountered: