-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 43063fa
Showing
3 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: 1.0.{build} | ||
|
||
install: | ||
- cmd: set PATH=%PYTHON_LOC%;%PYTHON_LOC%\Scripts;%PATH% | ||
- cmd: pip install --egg scons | ||
- cmd: pip install numpy cython | ||
|
||
build_script: | ||
- cmd: set PATH=%PYTHON_LOC%;%PYTHON_LOC%\Scripts;%PATH% | ||
- cmd: call build.bat | ||
|
||
environment: | ||
matrix: | ||
- PYTHON_LOC: C:\Python27 | ||
PY_VER: 2.7 | ||
- PYTHON_LOC: C:\Python36 | ||
PY_VER: 3.6 | ||
- PYTHON_LOC: C:\Python36-x64 | ||
PY_VER: 3.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@ECHO off | ||
|
||
IF %ARCH% EQU 64 ( | ||
CALL "%VS140COMNTOOLS%"\..\..\VC\bin\amd64\vcvars64.bat | ||
) ELSE ( | ||
CALL "%VS140COMNTOOLS%"\..\..\VC\bin\vcvars32.bat | ||
) | ||
|
||
:: The major version of Python being used | ||
SET PY_MAJ_VER=%PY_VER:~0,1% | ||
|
||
IF %PY_MAJ_VER% EQU 2 ( | ||
CALL pip install 3to2 | ||
) | ||
|
||
:: Set the number of CPUs to use in building | ||
SET /A CPU_USE=%CPU_COUNT% / 2 | ||
IF %CPU_USE% EQU 0 SET CPU_USE=1 | ||
|
||
git clone https://github.com/Cantera/cantera.git | ||
cd cantera | ||
git checkout %CANTERA_TAG% | ||
|
||
:: Have to use CALL to prevent the script from exiting after calling SCons | ||
CALL scons clean | ||
|
||
:: Put important settings into cantera.conf for the build. Use VS 2015 to | ||
:: compile the interface. | ||
ECHO msvc_version='14.0' >> cantera.conf | ||
ECHO matlab_toolbox='n' >> cantera.conf | ||
ECHO debug='n' >> cantera.conf | ||
ECHO f90_interface='n' >> cantera.conf | ||
ECHO system_sundials='n' >> cantera.conf | ||
|
||
SET "ESC_PREFIX=%PREFIX:\=/%" | ||
ECHO boost_inc_dir="%ESC_PREFIX%/Library/include" >> cantera.conf | ||
|
||
CALL scons build -j%CPU_USE% python_package=y python_cmd="%PYTHON%" | ||
CALL scons msi |