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 benjamin.peterson, chris.jerdonek, eric.araujo, fdrake, georg.brandl, ned.deily, python-dev, ronaldoussoren, sbt, tarek
Date 2012-07-27.14:10:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343398251.15.0.375564753117.issue15364@psf.upfronthosting.co.za>
In-reply-to
Content
The current patch should be fine, although it is IMHO not the long-term solution. For installed python's get_config_var('srcdir') still lies, but now at least returns slightly more sane path.

As I noted before the real problem is that it is not clear which config_vars are usable in which situations. One example is 'srcdir': this value is only useful in the build tree and there currently is no clean way to signal that you are retrieving a value that is not useful.  Another example is 'RUNSHARED', that's also only useable when building python.

I'm not sure what the right solution for the larger issue is. It might be good enough to document generally useful config_vars and warn that other's might exist but might not be safe to use, on the other hand it might be better to explicitly reduce the set of config_vars to something sane (and document which those are and when they can be used)
History
Date User Action Args
2012-07-27 14:10:51ronaldoussorensetrecipients: + ronaldoussoren, fdrake, georg.brandl, benjamin.peterson, tarek, ned.deily, eric.araujo, chris.jerdonek, python-dev, sbt
2012-07-27 14:10:51ronaldoussorensetmessageid: <1343398251.15.0.375564753117.issue15364@psf.upfronthosting.co.za>
2012-07-27 14:10:50ronaldoussorenlinkissue15364 messages
2012-07-27 14:10:50ronaldoussorencreate