On Monday, March 2, 2026 at 2:35:29 PM UTC-6 [email protected] wrote:

I might have already asked (sorry) - how do you build python - is it 
somewhere on GitHub?
We'd like to have instructions for it in view of removing python3 spkg in 
https://github.com/sagemath/sage/pull/41120
We have reasonable success with 
https://github.com/astral-sh/python-build-standalone - but it would be nice 
to 
mention an alternative.


I would suggest as an alternative just doing a default build of python3.14 
and installing it in /usr/local.  I have done that on Ubuntu systems 
several times over the past few weeks, with no issues whatsoever.  You need 
a few development packages - I think bzip2, zlib, lzma, xz, ncurses, 
readline, sqlite3, openssl and libffi will do it. Then the usual 
./configure; make; sudo make install will build and install it in 
/usr/local.  It should already be in your path and you can use it to build 
a venv and then move on to building sage.

Building python is nothing compared to building sage.  I never understood 
why maintaining the spkg was so difficult, nor why removing it was so 
important.

For the appimage I need to work harder because I need everything to be 
embedded in the appimage and hence to be relocatable.  But people building 
sage in the expected way don't need that.

- Marc
 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/357a9ae7-217a-41c8-af04-be3a1e991f12n%40googlegroups.com.

Reply via email to