fangyizhou <> added the comment:


This leads to build failures due to circular dependency

At generate-posix-vars stage, unicodedata is imported (due to import pprint)but 
it has not been built due to it being a C module. However, building C modules 
happen after generate-posix-vars.

See full message below.

./python.exe -E -S -m sysconfig --generate-posix-vars ;\
        if test $? -ne 0 ; then \
                echo "generate-posix-vars failed" ; \
                rm -f ./pybuilddir.txt ; \
                exit 1 ; \
Traceback (most recent call last):
  File "/Users/fangyi/cpython/Lib/", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/fangyi/cpython/Lib/", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/fangyi/cpython/Lib/", line 700, in <module>
  File "/Users/fangyi/cpython/Lib/", line 688, in _main
  File "/Users/fangyi/cpython/Lib/", line 350, in 
    import pprint
  File "/Users/fangyi/cpython/Lib/", line 38, in <module>
    import re
  File "/Users/fangyi/cpython/Lib/", line 123, in <module>
    import sre_compile
  File "/Users/fangyi/cpython/Lib/", line 14, in <module>
    import sre_parse
  File "/Users/fangyi/cpython/Lib/", line 16, in <module>
    import unicodedata
ModuleNotFoundError: No module named 'unicodedata'
generate-posix-vars failed

nosy: +fangyizhou

Python tracker <>
Python-bugs-list mailing list

Reply via email to