Hello All,

I am trying to compile a Python27 application for mac using a simple script:

from setuptools import setup
setup(
    app=["GF-soft.pyw"],
    setup_requires=["py2app"],
)

and ended up with this:

setup.py, line 68, in main
BASE_CFLAGS = cfg['CFLAGS']
KeyError: 'CFLAGS'

In "setup.py" located at 
"C:\Python27\Lib\site-packages\py2app-0.7.1-py2.7.egg\py2app\apptemplate"

cfg = distutils.sysconfig.get_config_vars()
return the following configuration variable dictionary:

{'EXE': '.exe', 'exec_prefix': 'C:\\Python27', 'LIBDEST': 'C:\\Python27\\Lib', 
'prefix': 'C:\\Python27', 'VERSION': '27', 'SO': '.pyd', 'BINLIBDEST': 
'C:\\Python27\\Lib', 'INCLUDEPY': 'C:\\Python27\\include', 'BINDIR': 
'C:\\Python27'}

and the keyword "CFLAGS" indeed does not exist...

Should I add something in my path directory ? (I am using windows XP)
Best regards,
Jean-Luc
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to