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 ronaldoussoren
Recipients chris.jerdonek, eric.araujo, fdrake, ned.deily, ronaldoussoren, sbt, tarek
Date 2012-07-18.12:30:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342614659.4.0.578708268013.issue15364@psf.upfronthosting.co.za>
In-reply-to
Content
I'd make get_config_var('srcdir') to be None for installed systems, because the source tree is not available there.

The advantage of making the value None is that this is easy to test for and would quickly break path manipulation code that tries to construct a path to a specific file in the source tree.  

Making the value to be the name of the directory containing Makefile would still break code that tries to access files relative to the source tree, but could that breakage could be harder to track.

BTW. sysconfig really needs a better description of which variables are supposed to be available, it currently exports every definition in the Makefile and pyconfig.h, and not all of those definitions are usable outside of CPython's build process.
History
Date User Action Args
2012-07-18 12:30:59ronaldoussorensetrecipients: + ronaldoussoren, fdrake, tarek, ned.deily, eric.araujo, chris.jerdonek, sbt
2012-07-18 12:30:59ronaldoussorensetmessageid: <1342614659.4.0.578708268013.issue15364@psf.upfronthosting.co.za>
2012-07-18 12:30:58ronaldoussorenlinkissue15364 messages
2012-07-18 12:30:58ronaldoussorencreate