Changeset View
Changeset View
Standalone View
Standalone View
math/qtiplot/files/patch-qtiplot__qtiplot.pro
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | + unix: pythonconfig.path = $$INSTALLBASE/share/qtiplot | ||||
DEFINES += PYTHON_CONFIG_PATH="\\\"$$replace(pythonconfig.path," ","\ ")\\\" | DEFINES += PYTHON_CONFIG_PATH="\\\"$$replace(pythonconfig.path," ","\ ")\\\" | ||||
} | } | ||||
unix { | unix { | ||||
isEmpty(PYTHON): PYTHON = python | isEmpty(PYTHON): PYTHON = python | ||||
- INCLUDEPATH += $$system($$PYTHON python-includepath.py) | - INCLUDEPATH += $$system($$PYTHON python-includepath.py) | ||||
- LIBS += $$system($$PYTHON -c "\"from distutils import sysconfig; print '-lpython'+sysconfig.get_config_var('VERSION')\"") | - LIBS += $$system($$PYTHON -c "\"from distutils import sysconfig; print '-lpython'+sysconfig.get_config_var('VERSION')\"") | ||||
+ INCLUDEPATH += $$(PYTHON_INCLUDEDIR) | + INCLUDEPATH += $$(PYTHON_INCLUDEDIR) | ||||
+ LIBS += -l$$(PYTHON_VERSION) | + LIBS += $$(PYTHON_LIB) | ||||
LIBS += -lm | LIBS += -lm | ||||
system(mkdir -p $${SIP_DIR}) | system(mkdir -p $${SIP_DIR}) | ||||
- system($$system($$PYTHON python-sipcmd.py) -c $${SIP_DIR} src/scripting/qti.sip) | - system($$system($$PYTHON python-sipcmd.py) -c $${SIP_DIR} src/scripting/qti.sip) | ||||
+ SIPCMD = $$PYTHON_CMD python-sipcmd.py | + SIPCMD = $$PYTHON_CMD python-sipcmd.py | ||||
+ system($$system($$SIPCMD) -c $${SIP_DIR} src/scripting/qti.sip) | + system($$system($$SIPCMD) -c $${SIP_DIR} src/scripting/qti.sip) | ||||
} | } | ||||
win32 { | win32 { |