File tree Expand file tree Collapse file tree 5 files changed +42
-1
lines changed Expand file tree Collapse file tree 5 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ foreach (PKG MPC MPFR PIRANHA FLINT LLVM)
44
44
set (HAVE_SYMENGINE_${PKG} False )
45
45
endif ()
46
46
endforeach ()
47
+ option (SYMENGINE_INSTALL_PY_FILES "Install python files" ON )
47
48
48
49
message ("CMAKE_SYSTEM_PROCESSOR : ${CMAKE_SYSTEM_PROCESSOR} " )
49
50
message ("CMAKE_BUILD_TYPE : ${CMAKE_BUILD_TYPE} " )
Original file line number Diff line number Diff line change @@ -112,7 +112,9 @@ def cmake_build(self):
112
112
os .remove ("CMakeCache.txt" )
113
113
114
114
cmake_cmd = ["cmake" , source_dir ,
115
- "-DCMAKE_BUILD_TYPE=" + cmake_build_type [0 ]]
115
+ "-DCMAKE_BUILD_TYPE=" + cmake_build_type [0 ],
116
+ "-DSYMENGINE_INSTALL_PY_FILES=OFF" ,
117
+ ]
116
118
cmake_cmd .extend (process_opts (cmake_opts ))
117
119
if not path .exists (path .join (build_dir , "CMakeCache.txt" )):
118
120
cmake_cmd .extend (self .get_generator ())
Original file line number Diff line number Diff line change 1
1
add_subdirectory (lib )
2
+
3
+ if (SYMENGINE_INSTALL_PY_FILES )
4
+ add_subdirectory (tests )
5
+
6
+ set (PY_PATH ${PYTHON_INSTALL_PATH} /symengine )
7
+ install (FILES __init__.py utilities.py sympy_compat.py functions.py printing.py
8
+ DESTINATION ${PY_PATH}
9
+ )
10
+ endif ()
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ install(FILES
36
36
DESTINATION ${PY_PATH}
37
37
)
38
38
39
+ if (SYMENGINE_INSTALL_PY_FILES )
40
+ install (FILES __init__.py DESTINATION ${PY_PATH} )
41
+ endif ()
42
+
39
43
if (${SYMENGINE_COPY_EXTENSION} )
40
44
if ("${PYTHON_EXTENSION_SOABI} " MATCHES "ppc64le" )
41
45
string (REPLACE "ppc64le" "powerpc64le" COPY_PYTHON_EXTENSION_SOABI "${PYTHON_EXTENSION_SOABI} " )
Original file line number Diff line number Diff line change
1
+ set (PY_PATH ${PYTHON_INSTALL_PATH} /symengine/tests )
2
+ install (FILES __init__.py
3
+ test_arit.py
4
+ test_dict_basic.py
5
+ test_eval.py
6
+ test_expr.py
7
+ test_functions.py
8
+ test_number.py
9
+ test_matrices.py
10
+ test_ntheory.py
11
+ test_printing.py
12
+ test_sage.py
13
+ test_series_expansion.py
14
+ test_sets.py
15
+ test_solve.py
16
+ test_subs.py
17
+ test_symbol.py
18
+ test_sympify.py
19
+ test_sympy_conv.py
20
+ test_var.py
21
+ test_lambdify.py
22
+ test_sympy_compat.py
23
+ test_logic.py
24
+ DESTINATION ${PY_PATH}
25
+ )
You can’t perform that action at this time.
0 commit comments