This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients larry
Date 2021-02-07.20:44:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612730659.9.0.347520018019.issue43158@roundup.psfhosted.org>
In-reply-to
Content
I'm building Python for a mildly-embedded ARM system.  The system is running Linux, but doesn't have a native toolchain installed.  So I'm building in a Docker container using a native toolchain (virtualizing the CPU).

The toolchain I'm given has a bunch of stuff preinstalled, but not "util-linux", so it doesn't have /usr/include/uuid/uuid.h or  /usr/include/uuid.h .  I built and installed it myself in my PREFIX directory.  But Python's build process has *two* bugs that prevented me from building the uuid module:

* configure doesn't look in PREFIX for uuid/uuid.h or uuid.h.  I assume it's only looking in /usr/include.  This means it doesn't define any of the HAVE_UUID_* defines.

* detect_uuid() in setup.py, which actually builds the module, *does* seem to check the prefix directory, but only for $PREFIX/uuid.h, not for $PREFIX/uuid/uuid.h.

I hacked both of these manually and was rewarded with the uuid module building and working fine on the embedded system.  So I assert this is a bug in Python's build process, if a minor one.
History
Date User Action Args
2021-02-07 20:44:19larrysetrecipients: + larry
2021-02-07 20:44:19larrysetmessageid: <1612730659.9.0.347520018019.issue43158@roundup.psfhosted.org>
2021-02-07 20:44:19larrylinkissue43158 messages
2021-02-07 20:44:19larrycreate