bpo-45881: Use CC from env first for cross building (GH-29752)#29752
Conversation
``setup.py`` now uses ``CC`` from environment first to discover multiarch and cross compile paths. The sysconfig variable contains the value for the build host. The patch also re-arranges ``set_compiler_executables``, ``configure_compiler``, and ``init_inc_lib_dirs`` to make the code easier to follow. Signed-off-by: Christian Heimes <christian@python.org>
acc610b to
0719057
Compare
November 24, 2021 16:47
|
Thanks @tiran for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
Sorry, something went wrong.
|
Sorry, @tiran, I could not cleanly backport this to |
Sorry, something went wrong.
|
Sorry @tiran, I had trouble checking out the |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot s390x Fedora Clang Installed 3.10 has failed when building commit 545aebd. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/690/builds/488 Summary of the results of the build (if available): Click to see traceback logsfatal: unable to access 'https://github.com/python/cpython.git/': The requested URL returned error: 504
chmod: cannot access 'target/': No such file or directory
make: *** No rule to make target 'distclean'. Stop. |
Sorry, something went wrong.
setup.pynow usesCCfrom environment first to discover multiarchand cross compile paths. The sysconfig variable contains the value for
the build host.
The patch also re-arranges
set_compiler_executables,configure_compiler, andinit_inc_lib_dirsto make the codeeasier to follow.
Signed-off-by: Christian Heimes christian@python.org
https://bugs.python.org/issue45881