python - Distutils compiler options configuration -
maybe stupid question, wondering python's distutils compiler options from? gets linked directories wrong , want correct once , all.
i know there should prefix/lib/pythonver/distutils/distutils.cfg can't find distutils.cfg anywhere on computer. haven't got local setup.cfg or $home/.pydistutils.cfg.
i'm using enthought 64-bit distribution, version 7.3 (python 2.7) on mac os x 10.8.3
cheers, u.
i export them environment, autotools' configure:
export cc=/usr/local/bin/clang export cflags=-i${home}/include export ldflags=-lboost
if need override linker separately:
export ldshared=/usr/local/bin/clang -shared
and if don't export
ing settings environment, one-time setting:
cc=/usr/local/bin/clang cflags=-i${home}/include python setup.py build
if want find out default options when python build, use python-config --<flag>
. flags cflags
, ldflags
, libs
or includes
.
Comments
Post a Comment