On Aug 16, 2004, at 5:55 PM, Skip Montanaro wrote: > > Bob> Even better (and I think this is what he was actually asking > for): > > Bob> % python -c 'import distutils.sysconfig; print > Bob> distutils.sysconfig.get_config_var("CONFIG_ARGS")' > > Thanks. Not as easy to remember as "grep configure config.status", but > useful nonetheless. Yeah, but I don't have a hard time remembering that the Makefile (that gets distributed w/ Python) knows everything, and that distutils knows how to read the Makefile. It's hard to remember the names of the make variables and the distutils incantation, but neither are hard to look up (if you've been through it a couple times anyway). I prefer not to depend on your solution because it's only useful if you compiled Python and still have access to that build tree (and remember which one it was). The first CONFIG_ARGS I spit out was the one used to build Python 2.3.0 on Mac OS X 10.3, and I certainly didn't do that here :) -bob
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4