>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/...) On Saturday, November 19, 2022 at 4:28:11 AM UTC-8 furutaka....@gmail.com wrote: > 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 > -- 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/793d503e-4ba3-45e4-b27e-9618ba8eef45n%40googlegroups.com.