Author steve.dower
Recipients Alex.Willmer, bill9889, doko, iliis, steve.dower, wscullin
Date 2020-03-18.22:56:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584572200.99.0.603042481468.issue22699@roundup.psfhosted.org>
In-reply-to
Content
Trimmed a bit from setup.py here, but I think this is the cause:

    def build_extensions(self):
        self.srcdir = sysconfig.get_config_var('srcdir')
        self.srcdir = os.path.abspath(self.srcdir)

        [SNIP]

        # Fix up the autodetected modules, prefixing all the source files
        # with Modules/.
        moddirlist = [os.path.join(self.srcdir, 'Modules')]

In my build, I've set PYTHON_FOR_BUILD=python3.8, and the contents of moddirlist is '/usr/lib/python3.8/config-3.8-x86_64-linux-gnu/Modules'. So it's picking the wrong source directory.

I replaced the second line of the function above with:
    self.srcdir = os.path.dirname(os.path.abspath(__file__))

Which made things a little better (I can launch my build now), but all the -I/usr/* options need to be replaced as well or there are no dynamically loaded modules.
History
Date User Action Args
2020-03-18 22:56:41steve.dowersetrecipients: + steve.dower, doko, Alex.Willmer, bill9889, wscullin, iliis
2020-03-18 22:56:40steve.dowersetmessageid: <1584572200.99.0.603042481468.issue22699@roundup.psfhosted.org>
2020-03-18 22:56:40steve.dowerlinkissue22699 messages
2020-03-18 22:56:40steve.dowercreate