Getting the --options of configure on installed python

Mark Rowe mail.python.org at bdash.net.nz
Mon Jul 25 09:02:06 EDT 2005


On 25/07/2005, at 09:56 , Thanos Tsouanas wrote:

> Hello!
>
> Is there a way to get the --options with which python was  
> configured on
> a system?
>
> Thanks in advance.

Hi Thanos,

Take a look at the distutils.sysconfig module (<http:// 
docs.python.org/dist/module-distutils.sysconfig.html>):

 >>> import distutils.sysconfig
 >>> distutils.sysconfig.get_config_var('CONFIG_ARGS')
"'--prefix=/opt/local' '--enable-shared' '--mandir=/opt/local/share/ 
man' '--bindir=/opt/local/bin' '--with-readline' '--enable-framework'  
'--enable-ipv6' '--enable-tk'"
 >>>

Kind Regards,

Mark Rowe
<http://bdash.net.nz/>




More information about the Python-list mailing list