distutils is pretty indifferent to whether it's building native or cross. The idea is to run the host python with the target's sysconfig to provide the tools needed for cross compilation. Yes, there are problems if third-party modules are using the sys module to reason about the target architecture.
On 3/19/20 9:34 PM, Ivan Pozdeev via Python-Dev wrote: > Last time I checked, distutils didn't support compilation for anything but the > running Python instance, nor was it intended to. Should it? > If not, the efforts look misplaced, you should rather use a toolchain that > does... > > On 19.03.2020 23:22, Steve Dower wrote: >> So over on https://bugs.python.org/issue22699 I've been talking to myself as >> I >> figure out all the ways that cross-compiling (on Ubuntu, targeting another >> Linux distro via an SDK) fails. >> >> In short, it's either because sysconfig can't provide details about any >> CPython install other than the currently running one, or it's because our >> setup.py (for building the CPython extension modules) uses sysconfig. >> >> Either way, I'm not about to propose a rewrite to fix either of them without >> finding those who are most involved in these areas. Please come join me on >> the >> bug. >> >> Thanks, >> Steve >> _______________________________________________ >> Python-Dev mailing list -- python-dev@python.org >> To unsubscribe send an email to python-dev-le...@python.org >> https://mail.python.org/mailman3/lists/python-dev.python.org/ >> Message archived at >> https://mail.python.org/archives/list/python-dev@python.org/message/6DBYMDCDLOS245XK57BD3E2GXGVDMBPX/ >> >> Code of Conduct: http://python.org/psf/codeofconduct/ > _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/YOM5OZ5UGLP3WP6ZLNXH2SU7WJSELPBM/ Code of Conduct: http://python.org/psf/codeofconduct/