New GitHub issue #101331 from aotto1968:<br>
<hr>
<pre>
I often installed python but now (for some unknown reason) it failed. The problem is the `lib/python3.11/compileall.py` with 6 sub-fork never end. I stop after 1h30 execution time, I try 3.10 and 3.11.
comment out the block
~~~~
# -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
# $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
# -j0 -d $(LIBDEST) -f \
# -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
# $(DESTDIR)$(LIBDEST)
# -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
# $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
# -j0 -d $(LIBDEST) -f \
# -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
# $(DESTDIR)$(LIBDEST)
# -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
# $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
# -j0 -d $(LIBDEST) -f \
# -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
# $(DESTDIR)$(LIBDEST)
# -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
# $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
# -j0 -d $(LIBDEST)/site-packages -f \
# -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
# -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
# $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
# -j0 -d $(LIBDEST)/site-packages -f \
# -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
# -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
# $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
# -j0 -d $(LIBDEST)/site-packages -f \
# -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
~~~~
helps to install, but the python seems to be broken with startup error on missing parts like.
~~~~
exec: [1] ;.../bin/python3.11
Could not find platform dependent libraries <exec_prefix>
Python 3.11.1 (main, Jan 25 2023, 23:48:02) [GCC 11.3.1 20221024 [revision bd0c76a2329e7fe6d6612c2259647bbb67f5866a]] on linux
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "/etc/pythonstart", line 7, in <module>
import readline
ModuleNotFoundError: No module named 'readline'
>>>
~~~~
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/101331">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>