# used by configure to generate the list of python specific libraries... from distutils.sysconfig import get_config_vars conf = get_config_vars() libdir = '-L %s' % (conf['LIBPL'],) libs0 = '-l%s' % (conf['LDLIBRARY'][3:][:-2],) libs1 = conf['LIBS'] libs2 = conf['SYSLIBS'] print libdir, libs0, libs1, libs2