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