A source distribution has many more points to break (I'll send my issues in a new thread), and it takes ages to compile. For now, it's still unresolved why 'configure' in the binary distribution fails to detect python3 in the system.
Regards, Max On Friday, June 18, 2021 at 7:18:00 PM UTC-4 dim...@gmail.com wrote: > On Fri, Jun 18, 2021 at 11:02 PM Max Alekseyev <max...@gmail.com> wrote: > > > > I'll try the source distribution, but I'd like to mention that building > optional packages from a binary distribution worked well in earlier Sage > versions (e.g., 9.1 and 9.2) > > please bear with us. We aim at > > pip install sagemath -u > > to be the normal, Pythonic way to deal with Sage... > > > > Regards, > > Max > > > > > > On Friday, June 18, 2021 at 5:50:20 PM UTC-4 dim...@gmail.com wrote: > >> > >> On Fri, Jun 18, 2021 at 10:37 PM Max Alekseyev <max...@gmail.com> > wrote: > >> > > >> > I installed Sage from sage-9.3-Ubuntu_20.04-x86_64.tar.bz2 > >> > >> this is a binary distribution. It doesn't really allow for building > >> optional packages. > >> Please get the source distribution instead. > >> > >> > >> > > >> > I've just run > >> > > >> > make python3-clean > >> > ./bootstrap > >> > ./configure > >> > > >> > but it still complaints that python3 is not installed in the system. > >> > Why? > >> > > >> > Regards, > >> > Max > >> > > >> > > >> > On Friday, June 18, 2021 at 5:32:56 PM UTC-4 dim...@gmail.com wrote: > >> >> > >> >> On Fri, Jun 18, 2021 at 10:20 PM Max Alekseyev <max...@gmail.com> > wrote: > >> >> > > >> >> > Please find config.log attached. The system has Python 3.8.5 > installed. > >> >> > >> >> ## Checking whether SageMath should install SPKG python3... ## > >> >> ## -------------------------------------------------------- ## > >> >> configure:32260: python3 has already been installed by SageMath > >> >> > >> >> here is why it does not use system python3 - because you already had > >> >> python3 built by Sage from source. > >> >> > >> >> (and the same for the host of other packages.) > >> >> > >> >> You can uninstall packages by doing > >> >> > >> >> make <package>-clean > >> >> > >> >> e.g. > >> >> > >> >> make python3-clean > >> >> > >> >> if you don't want to build from scratch. > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > Max > >> >> > > >> >> > On Friday, June 18, 2021 at 4:49:16 PM UTC-4 dim...@gmail.com > wrote: > >> >> >> > >> >> >> please post top-level config.log > >> >> >> > >> >> >> Do you have python3 excecutable, version 3.7 or newer? > >> >> >> > >> >> >> > >> >> >> On Fri, Jun 18, 2021 at 9:46 PM Max Alekseyev <max...@gmail.com> > wrote: > >> >> >> > > >> >> >> > I'd be happy to, but Sage somehow decides that it needs to > build its own Python from scratch. > >> >> >> > I simply sun 'sage -i pynormaliz' and get a broken sage as a > result. > >> >> >> > What's wrong? > >> >> >> > > >> >> >> > Regards, > >> >> >> > Max > >> >> >> > > >> >> >> > On Friday, June 18, 2021 at 4:42:00 PM UTC-4 dim...@gmail.com > wrote: > >> >> >> >> > >> >> >> >> don't build Python, use one from the system. > >> >> >> >> > >> >> >> >> On Fri, 18 Jun 2021, 21:09 Max Alekseyev, <max...@gmail.com> > wrote: > >> >> >> >>> > >> >> >> >>> Hi! > >> >> >> >>> > >> >> >> >>> I'm trying to install PyNormaliz within freshly installed > Sage 9.3 within freshly installed Ubuntu 20.04.02 LTS.It breaks giving the > following error: > >> >> >> >>> > >> >> >> >>> === > >> >> >> >>> > LD_LIBRARY_PATH=/usr/local/SageMath.93/local/var/tmp/sage/build/python3-3.9.2/src > > CC='gcc -pthread' LDSHARED='gcc -pthread -shared > -Wl,-rpath-link,/usr/local/SageMath.93/local/lib > -L/usr/local/SageMath.93/local/lib > -Wl,-rpath,/usr/local/SageMath.93/local/lib -L. > -Wl,-rpath-link,/usr/local/SageMath.93/local/lib > -L/usr/local/SageMath.93/local/lib > -Wl,-rpath,/usr/local/SageMath.93/local/lib ' OPT='-DNDEBUG -g -fwrapv -O3 > -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./setup.py build > >> >> >> >>> Traceback (most recent call last): > >> >> >> >>> File > "/usr/local/SageMath.93/local/var/tmp/sage/build/python3-3.9.2/src/./setup.py", > > line 33, in <module> > >> >> >> >>> from distutils import log > >> >> >> >>> File > "/usr/local/SageMath.93/local/lib/python3.9/site-packages/_distutils_hack/__init__.py", > > line 83, in create_module > >> >> >> >>> return importlib.import_module('setuptools._distutils') > >> >> >> >>> File > "/usr/local/SageMath.93/local/var/tmp/sage/build/python3-3.9.2/src/Lib/importlib/__init__.py", > > line 127, in import_module > >> >> >> >>> return _bootstrap._gcd_import(name[level:], package, level) > >> >> >> >>> File > "/usr/local/SageMath.93/local/lib/python3.9/site-packages/setuptools/__init__.py", > > line 16, in <module> > >> >> >> >>> import setuptools.version > >> >> >> >>> File > "/usr/local/SageMath.93/local/lib/python3.9/site-packages/setuptools/version.py", > > line 1, in <module> > >> >> >> >>> import pkg_resources > >> >> >> >>> File > "/usr/local/SageMath.93/local/lib/python3.9/site-packages/pkg_resources/__init__.py", > > line 23, in <module> > >> >> >> >>> import zipfile > >> >> >> >>> File > "/usr/local/SageMath.93/local/var/tmp/sage/build/python3-3.9.2/src/Lib/zipfile.py", > > line 6, in <module> > >> >> >> >>> import binascii > >> >> >> >>> ModuleNotFoundError: No module named 'binascii' > >> >> >> >>> make[3]: *** [Makefile:638: sharedmods] Error 1 > >> >> >> >>> > ******************************************************************************** > >> >> >> >>> Error building python3-3.9.2 > >> >> >> >>> > ******************************************************************************** > >> >> >> >>> === > >> >> >> >>> > >> >> >> >>> A full log is attached. > >> >> >> >>> > >> >> >> >>> Please advise. > >> >> >> >>> > >> >> >> >>> Thanks, > >> >> >> >>> Max > >> >> >> >>> > >> >> >> >>> -- > >> >> >> >>> 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+...@googlegroups.com. > >> >> >> >>> To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/cce1a457-2345-433c-8b25-75e40b5590d0n%40googlegroups.com > . > >> >> >> > > >> >> >> > -- > >> >> >> > 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+...@googlegroups.com. > >> >> >> > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/d976804d-b1f3-4e1e-adc9-4a5bf9af1b81n%40googlegroups.com > . > >> >> > > >> >> > -- > >> >> > 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+...@googlegroups.com. > >> >> > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/e8ad5341-915e-44bd-93c3-0b7f40caaa38n%40googlegroups.com > . > >> > > >> > -- > >> > 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+...@googlegroups.com. > >> > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/a0f6e252-8458-473b-b5ae-fac743fde7efn%40googlegroups.com > . > > > > -- > > 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+...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/454fa616-c0cd-4654-9024-0d229ce112d9n%40googlegroups.com > . > -- 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 on the web visit https://groups.google.com/d/msgid/sage-devel/ea9dfef8-a81e-4c09-8a31-5524440875f6n%40googlegroups.com.