132 |
('pythonlibname', 'Name of the python library to link. (This is found automatically for python2.X.)', ''), |
('pythonlibname', 'Name of the python library to link. (This is found automatically for python2.X.)', ''), |
133 |
('pythonlibpath', 'Path to the python library. (You should not need to set this unless your python has moved)',''), |
('pythonlibpath', 'Path to the python library. (You should not need to set this unless your python has moved)',''), |
134 |
('pythonincpath','Path to python include files. (You should not need to set this unless your python has moved',''), |
('pythonincpath','Path to python include files. (You should not need to set this unless your python has moved',''), |
135 |
|
BoolVariable('BADPYTHONMACROS','Extra \#include to get around a python bug.', True), |
136 |
) |
) |
137 |
|
|
138 |
##################### Create environment and help text ####################### |
##################### Create environment and help text ####################### |
251 |
if env['cxx_extra'] != '': env.Append(CXXFLAGS = env['cxx_extra']) |
if env['cxx_extra'] != '': env.Append(CXXFLAGS = env['cxx_extra']) |
252 |
if env['ld_extra'] != '': env.Append(LINKFLAGS = env['ld_extra']) |
if env['ld_extra'] != '': env.Append(LINKFLAGS = env['ld_extra']) |
253 |
|
|
254 |
|
if env['BADPYTHONMACROS']: env.Append(CXXFLAGS = ' -DBADPYTHONMACROS') |
255 |
|
|
256 |
if env['usepython3']: |
if env['usepython3']: |
257 |
env.Append(CPPDEFINES=['ESPYTHON3']) |
env.Append(CPPDEFINES=['ESPYTHON3']) |
258 |
|
|