Failed to build wheel-0.37.1 of sage-9.8.beta3 w/ sage's python-3.10 (on Fedora-37, x86_64)

35 views
Skip to first unread message

Kazuyoshi Furutaka

unread,
Nov 19, 2022, 7:28:11 AM11/19/22
to sage-devel
Hi...

On Fedora 37 (x86_64): default python version is 3.11.0.
The build of sage 9.8.beta3 (configured w/o any options -> build the python-3.10 source package in sage) failed due to the error in importing setuptools while building wheel.
By configuring with an older version of Python in the fedora system (3.10.8, --with-python=/usr/bin/python3.10), the build is successful.

Kazuyoshi
--
Kazuyoshi Furutaka
config.log
wheel-0.37.1.log
setuptools-63.4.3.log
python3-3.10.8.log

Matthias Koeppe

unread,
Nov 19, 2022, 11:58:01 AM11/19/22
to sage-devel
From the setuptools log:

running install_lib
creating /home/furutaka/work/sage/sage-9.8.beta3-git-gcc-f37-system-python/local/var/lib/sage/venv-python3.10.8/var/tmp/sage/build/setuptools-63.4.3/inst/usr
creating /home/furutaka/work/sage/sage-9.8.beta3-git-gcc-f37-system-python/local/var/lib/sage/venv-python3.10.8/var/tmp/sage/build/setuptools-63.4.3/inst/usr/local
creating /home/furutaka/work/sage/sage-9.8.beta3-git-gcc-f37-system-python/local/var/lib/sage/venv-python3.10.8/var/tmp/sage/build/setuptools-63.4.3/inst/usr/local/lib
creating /home/furutaka/work/sage/sage-9.8.beta3-git-gcc-f37-system-python/local/var/lib/sage/venv-python3.10.8/var/tmp/sage/build/setuptools-63.4.3/inst/usr/local/lib/python3.10
creating /home/furutaka/work/sage/sage-9.8.beta3-git-gcc-f37-system-python/local/var/lib/sage/venv-python3.10.8/var/tmp/sage/build/setuptools-63.4.3/inst/usr/local/lib/python3.10/site-packages
creating /home/furutaka/work/sage/sage-9.8.beta3-git-gcc-f37-system-python/local/var/lib/sage/venv-python3.10.8/var/tmp/sage/build/setuptools-63.4.3/inst/usr/local/lib/python3.10/site-packages/_distutils_hack
copying build/lib/_distutils_hack/__init__.py -> /home/furutaka/work/sage/sage-9.8.beta3-git-gcc-f37-system-python/local/var/lib/sage/venv-python3.10.8/var/tmp/sage/build/setuptools-63.4.3/inst/usr/local/lib/python3.10/site-packages/_distutils_hack

Note the reference to /usr/local/lib. This is not expected.
I'd suggest rebuilding from scratch with PATH reduced to a minimum (without the various stuff from /usr/local/...)
Reply all
Reply to author
Forward
0 new messages