To find list of options that python was compiled with

[user@host]# python -c "import sysconfig; print sysconfig.get_config_var('CONFIG_ARGS')"
'--prefix=/usr/local/python-2.7.5' '--enable-shared' '--disable-static' 'LDFLAGS=-Wl,-rpath,/usr/local/python/lib'