-
-
Couldn't load subscription status.
- Fork 683
Description
This ticket starts by splitting the spkg-install for python2 and python3 into separate spkg-build and spkg-install scripts as recommended by #21726 (we said we would apply this change to individual packages on a case-by-case basis, and I figured as long as I was making changes to these scripts it would be good to do).
This also fixes a general bug with the build, where building a new Python can link the python executable and extension modules with an old libpython left in $SAGE_LOCAL, leading to possible errors.
Rather than deleting the old libpython first, I think it's cleaner to pass the correct $LDFLAGS to prevent this from happening.
Finally, this moves the tests that certain extension modules built to after building, but before installing, and runs the tests out of the source directory. This is a change extracted from #22509.
Component: packages: standard
Keywords: python2 python3
Author: Erik Bray
Branch/Commit: f326c1a
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/23781