On 7 April 2025 07:48:37 GMT-05:00, Nathan Dunfield <nat...@dunfield.info> 
wrote:
>
>
>1) Having sagemath detect python version requirements and build its own if 
>not acceptable version is found leads to increased support requests.
>
>[...] 
>
>It seems to me that for 1) it isn't so important if python occurs as an 
>spkg or not -- the main issue there would be resolved if the build process 
>would not default to initiating building python. So it would seem that it's 
>simply the python version detection code that can be adjusted. We could 
>just have a configure flag "--install_own_python" to allow the prerequisite 
>requirement to be fulfilled by building the python spkg; an option that 
>would by default be off.
>
>
>Building on this idea, I wonder if there should be a mechanism along the 
>lines of:
>
>When compiling on macOS and homebrew is present, check if *all* the 
>recommended 
>homebrew packages 
><https://doc.sagemath.org/html/en/installation/source.html#macos-package-installation>
> are 
>present and only proceed if they are or the person provides the flag 
>"--proceed-at-own-risk". 
>
>In the particular case that Dima highlighted, Python was actually the 
>second spkg not to build; the first was gsl which is one of the recommended 
>homebrew packages.
>
>Best,
>
>Nathan
>
>P.S. I'm assuming that the issue compiling Python are specific to macOS and 
>that OS's failure to provide openssl as a system library.  Dima please 
>correct me if that you are also seeing Python compilation errors on Linux.

We do see similar problems on Linux being run in WSL. It's probably due to WSL 
defaulting to an old Ubuntu version, on which you need to jump extra hoops to 
install modern Python.

Also, people try native builds on HPC clusters, which typically run weird old 
versions of Linux, where the only working way out I know is to use Conda. 

Dima



>

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/4B6AA745-A925-4446-907F-71016087BC11%40gmail.com.

Reply via email to