Skip to content

Commit 5ef13d2

Browse files
committed
inplace builds in CI
1 parent cb00bda commit 5ef13d2

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ Python wrappers can be installed by,
3535

3636
Additional options to setup.py are
3737

38-
python setup.py install build
38+
python setup.py install build_ext
3939
--symengine-dir=/path/to/symengine/install/dir # Path to SymEngine install directory or build directory
4040
--compiler=mingw32|msvc|cygwin # Select the compiler for Windows
4141
--generator=cmake-generator # CMake Generator
4242
--build-type=Release|Debug # Set build-type for multi-configuration generators like MSVC
4343
--define="var1=value1;var2=value2" # Give options to CMake
44+
--inplace # Build the extension in source tree
4445

4546
Standard options to setup.py like `--user`, `--prefix` can be used to configure install location
4647

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ install:
8383

8484
build_script:
8585

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
8989

9090
test_script:
9191
- if not [%COMPILER%]==[MSVC15] nosetests

bin/test_travis.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ set -e
55
# Echo each command
66
set -x
77

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
1010

1111
# Test python wrappers
1212
if [[ "${WITH_SAGE}" != "yes" ]]; then

0 commit comments

Comments
 (0)