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 pitrou
Recipients barry, benjamin.peterson, eric.araujo, pitrou
Date 2010-09-20.12:21:13
SpamBayes Score 1.9573232e-13
Marked as misclassified No
Message-id <1284985270.3176.4.camel@localhost.localdomain>
In-reply-to <20100920080953.55bfa8fe@mission>
Content
> >On the other hand, this begs the question of why you want to access
> >the Python makefile at all. Is there any information in there that
> >isn't currently exposed? I think it would be nice if people could
> >completely forget about the existence of that file, and instead have
> >nice programmatic APIs to query properties they are interested in.
> 
> In principle I agree that the parsing of pyconfig.h and Makefile are
> implementation details that shouldn't matter.  I'm working on the bug to
> pre-parse these at build time and generate a _sysconfig module that sysconfig
> would import.

I don't think you can pre-parse these at build time, since a Python
executable doesn't exist. You must adopt the reverse approach: pass all
necessary variables on the command-line (e.g. through -DCFLAGS switches)
when compiling the _sysconfig module, from the Makefile.

(I'm assuming that _sysconfig will have to be built-in rather than
dynamically loadable, since it exposes information which is critical for
building dynamic modules :-))
History
Date User Action Args
2010-09-20 12:21:16pitrousetrecipients: + pitrou, barry, benjamin.peterson, eric.araujo
2010-09-20 12:21:13pitroulinkissue9877 messages
2010-09-20 12:21:13pitroucreate