On 7 Nov 2022, at 14:55, Alexander Kanavin via lists.openembedded.org <[email protected]> wrote: > # Check the python install is complete. Examples that are often removed in > - # minimal installations: glib-2.0-natives requries # xml.parsers.expat > and icu > - # requires distutils.sysconfig. > + # minimal installations: glib-2.0-natives requries # xml.parsers.expat > try: > import xml.parsers.expat > - import distutils.sysconfig > + import sysconfig
Well, we check for distutils because it’s often packaged separately, for example in Debian/Ubuntu it is part of python3-distutils and is not installed if you just ‘apt install python3’. sysconfig is not split out, it’s part of the core library. If we don’t actually need a *host* distutils anymore (and this is easily tested) then we can remove this check entirely. If we do, then this test needs to remain and the code that uses *host* distutils should be fixed. Ross
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#172989): https://lists.openembedded.org/g/openembedded-core/message/172989 Mute This Topic: https://lists.openembedded.org/mt/94867624/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
