File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,13 @@ Python wrappers can be installed by,
35
35
36
36
Additional options to setup.py are
37
37
38
- python setup.py install build
38
+ python setup.py install build_ext
39
39
--symengine-dir=/path/to/symengine/install/dir # Path to SymEngine install directory or build directory
40
40
--compiler=mingw32|msvc|cygwin # Select the compiler for Windows
41
41
--generator=cmake-generator # CMake Generator
42
42
--build-type=Release|Debug # Set build-type for multi-configuration generators like MSVC
43
43
--define="var1=value1;var2=value2" # Give options to CMake
44
+ --inplace # Build the extension in source tree
44
45
45
46
Standard options to setup.py like ` --user ` , ` --prefix ` can be used to configure install location
46
47
Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ install:
83
83
84
84
build_script :
85
85
86
- - if [%COMPILER%]==[MSVC15] python setup.py install build --compiler=msvc --build-type=%BUILD_TYPE%
87
- - if [%COMPILER%]==[MinGW] python setup.py install build --compiler=mingw
88
- - if [%COMPILER%]==[MinGW-w64] python setup.py install build --compiler=mingw
86
+ - if [%COMPILER%]==[MSVC15] python setup.py install build_ext --compiler=msvc --build-type=%BUILD_TYPE%
87
+ - if [%COMPILER%]==[MinGW] python setup.py install build_ext --compiler=mingw --inplace
88
+ - if [%COMPILER%]==[MinGW-w64] python setup.py install build_ext --compiler=mingw --inplace
89
89
90
90
test_script :
91
91
- if not [%COMPILER%]==[MSVC15] nosetests
Original file line number Diff line number Diff line change 5
5
# Echo each command
6
6
set -x
7
7
8
- # Build and install python wrappers
9
- python setup.py install --symengine-dir=$our_install_dir
8
+ # Build inplace so that nosetests can be run inside source directory
9
+ python setup.py install build_ext --inplace --symengine-dir=$our_install_dir
10
10
11
11
# Test python wrappers
12
12
if [[ " ${WITH_SAGE} " != " yes" ]]; then
You can’t perform that action at this time.
0 commit comments