File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ install:
117
117
118
118
build_script :
119
119
- set "PATH=C:\symengine\bin\;%PATH%"
120
+ - set "SYMENGINE_PY_ADD_PATH_TO_SEARCH_DIRS=1"
120
121
- echo %PATH%
121
122
- if [%COMPILER%]==[MSVC15] python setup.py install build_ext --compiler=msvc --build-type=%BUILD_TYPE%
122
123
- if [%COMPILER%]==[MinGW] python setup.py install build_ext --compiler=mingw --inplace
Original file line number Diff line number Diff line change
1
+ import os
2
+ import sys
3
+
4
+ if sys .version_info >= (3 , 8 , 0 ) and sys .platform == 'win32' \
5
+ and 'SYMENGINE_PY_ADD_PATH_TO_SEARCH_DIRS' in os .environ :
6
+ for directory in os .environ ['PATH' ].split (';' ):
7
+ if os .path .isdir (directory ):
8
+ os .add_dll_directory (directory )
9
+
10
+ del os , sys
11
+
1
12
import symengine .lib .symengine_wrapper as wrapper
2
13
3
14
from .lib .symengine_wrapper import (
You can’t perform that action at this time.
0 commit comments