35 lines
1.6 KiB
Diff
35 lines
1.6 KiB
Diff
|
diff -ru mathgl-2.4.1/lang/python3/CMakeLists.txt mathgl-2.4.1_patched/lang/python3/CMakeLists.txt
|
||
|
--- mathgl-2.4.1/lang/python3/CMakeLists.txt 2018-07-04 14:53:42.165822142 +0200
|
||
|
+++ mathgl-2.4.1_patched/lang/python3/CMakeLists.txt 2018-07-04 14:53:26.941745985 +0200
|
||
|
@@ -12,10 +12,10 @@
|
||
|
SET_SOURCE_FILES_PROPERTIES(../mathgl.i ../numpy.i PROPERTIES CPLUSPLUS ON)
|
||
|
|
||
|
if(enable-python)
|
||
|
- set(Python_ADDITIONAL_VERSIONS 3.6)
|
||
|
+ set(Python_ADDITIONAL_VERSIONS 3.7)
|
||
|
unset(PYTHONINTERP_FOUND)
|
||
|
unset(PYTHON_EXECUTABLE CACHE)
|
||
|
- FIND_PACKAGE(PythonInterp 3.6 REQUIRED)
|
||
|
+ FIND_PACKAGE(PythonInterp 3.7 REQUIRED)
|
||
|
if(NOT PYTHONINTERP_FOUND)
|
||
|
message(SEND_ERROR "Couldn't find python interpreter.")
|
||
|
endif(NOT PYTHONINTERP_FOUND)
|
||
|
@@ -28,7 +28,7 @@
|
||
|
unset(PYTHONLIBS_VERSION_STRING CACHE)
|
||
|
unset(PYTHON_LIBRARY CACHE)
|
||
|
unset(PYTHON_INCLUDE_DIR CACHE)
|
||
|
- FIND_PACKAGE(PythonLibs 3.6)
|
||
|
+ FIND_PACKAGE(PythonLibs 3.7)
|
||
|
if(NOT PYTHONLIBS_FOUND)
|
||
|
message(SEND_ERROR "Couldn't find python development libraries.")
|
||
|
endif(NOT PYTHONLIBS_FOUND)
|
||
|
@@ -67,7 +67,7 @@
|
||
|
|
||
|
install(FILES ${MathGL2_BINARY_DIR}/lang/python3/mathgl.py DESTINATION ${MGL_PYTHON_SITE_PACKAGES})
|
||
|
# harcoded for now. another way is to make glob search on *pyc in __pycache__ dir
|
||
|
- install(FILES ${MathGL2_BINARY_DIR}/lang/python3/__pycache__/mathgl.cpython-36.pyc DESTINATION ${MGL_PYTHON_SITE_PACKAGES}/__pycache__)
|
||
|
+ install(FILES ${MathGL2_BINARY_DIR}/lang/python3/__pycache__/mathgl.cpython-37.pyc DESTINATION ${MGL_PYTHON_SITE_PACKAGES}/__pycache__)
|
||
|
install (TARGETS _mathglp3 LIBRARY DESTINATION ${MGL_PYTHON_SITE_PACKAGES})
|
||
|
set(mgl_clean_files ${mgl_clean_files} mathgl.py)
|
||
|
endif(enable-python)
|