2022-02-26 23:16:46 +00:00
|
|
|
Index: mathgl-8.0.1/lang/CMakeLists.txt
|
2012-05-09 18:37:46 +00:00
|
|
|
===================================================================
|
2022-02-26 23:16:46 +00:00
|
|
|
--- mathgl-8.0.1.orig/lang/CMakeLists.txt
|
|
|
|
|
+++ mathgl-8.0.1/lang/CMakeLists.txt
|
2015-02-06 21:49:32 +00:00
|
|
|
@@ -39,7 +39,7 @@ if(enable-python)
|
2014-08-15 17:42:35 +00:00
|
|
|
|
2015-02-06 21:49:32 +00:00
|
|
|
include_directories(${PYTHON_INCLUDE_DIR} ${NUMPY_INCLUDE_PATH})
|
2012-12-16 11:28:01 +00:00
|
|
|
execute_process(
|
2022-01-10 23:56:54 +00:00
|
|
|
- COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(prefix='${CMAKE_INSTALL_PREFIX}'))"
|
|
|
|
|
+ COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(get_python_lib(1),prefix='${CMAKE_INSTALL_PREFIX}'))"
|
2012-12-16 11:28:01 +00:00
|
|
|
OUTPUT_VARIABLE MGL_PYTHON_SITE_PACKAGES
|
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
|
set(SWIG_MODULE_mathgl_EXTRA_DEPS numpy.i ${src_imp_dep})
|
2022-02-26 23:16:46 +00:00
|
|
|
@@ -58,8 +58,9 @@ if(enable-python)
|
|
|
|
|
)
|
|
|
|
|
add_custom_target(mgl_python_module ALL DEPENDS mathgl mathgl.pyc)
|
|
|
|
|
|
|
|
|
|
- install(FILES ${MathGL2_BINARY_DIR}/lang/mathgl.py ${MathGL2_BINARY_DIR}/lang/__pycache__/mathgl.cpython-${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}.pyc DESTINATION ${MGL_PYTHON_SITE_PACKAGES}/mathgl/__pycache__)
|
|
|
|
|
- install (TARGETS mathgl LIBRARY DESTINATION ${MGL_PYTHON_SITE_PACKAGES}/mathgl)
|
|
|
|
|
+ install(FILES ${MathGL2_BINARY_DIR}/lang/__pycache__/mathgl.cpython-${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}.pyc DESTINATION ${MGL_PYTHON_SITE_PACKAGES}/__pycache__)
|
|
|
|
|
+ install(FILES ${MathGL2_BINARY_DIR}/lang/mathgl.py DESTINATION ${MGL_PYTHON_SITE_PACKAGES})
|
|
|
|
|
+ install(TARGETS mathgl LIBRARY DESTINATION ${MGL_PYTHON_SITE_PACKAGES})
|
|
|
|
|
set(mgl_clean_files ${mgl_clean_files} mathgl.py)
|
|
|
|
|
endif(enable-python)
|
|
|
|
|
|