]> granicus.if.org Git - python/commit
First crack at the Distutils "config" command. Unlike other commands, this
authorGreg Ward <gward@python.net>
Tue, 6 Jun 2000 02:57:07 +0000 (02:57 +0000)
committerGreg Ward <gward@python.net>
Tue, 6 Jun 2000 02:57:07 +0000 (02:57 +0000)
commit28a5f44cca9c5f6abe319f3a446bf057d66e980e
tree726ce055eaf74936c473dbb014b43f2514b8aff1
parent43955c9a023ea7b50b28052112dbdc914c090a27
First crack at the Distutils "config" command.  Unlike other commands, this
one doesn't *do* anything by default; it's just there as a conduit for data
(eg. include dirs, libraries) from the user to the "build" commands.
However, it provides a couple of Autoconf-ish methods ('try_compile()',
'try_link()', 'try_run()') that derived, per-distribution "config" commands
can use to poke around the target system and see what's available.

Initial experimenst with mxDateTime indicate that higher-level methods are
necessary: analogs of Autoconf's AC_CHECK_HEADER, AC_CHECK_LIB will be
needed too (and that's just to probe the C/C++ system: how to probe the
Python system is wide open, and someday we'll have to worry about probing a
Java system too).
Lib/distutils/command/config.py [new file with mode: 0644]