Commit graph

363 commits

Author SHA1 Message Date
Ray Speth
3f69f6ac8a [SCons] Make issues importing NumPy easier to diagnose 2017-07-31 17:26:09 -04:00
Ray Speth
3d03795c4f [Python] Set minimum NumPy version to 1.8.1.
Minimum set based on a regression in NumPy 1.8.0 which affects the SolutionArray
class.

This makes Trusty Tahr (14.04) the oldest supported version of Ubuntu (using the
Ubuntu-provided NumPy package).

Resolves #445.
2017-07-30 14:39:57 -04:00
Bryan W. Weber
c125878a40
Disable external SUNDIALS libraries when building the Matlab toolbox
Resolves #431
2017-06-14 09:08:39 -04:00
Ray Speth
461b63e462 [SCons] Add option to pass flags to GTest 2017-02-22 22:18:40 -05:00
Ray Speth
70e10632d4 [SCons] Fix implicit dependencies on 'build' step
The 'install' and 'test' targets had some undeclared dependencies on the 'build'
target, such that running 'scons install' or 'scons test' without having first
run 'scons build' would result in incomplete installation or test failures,
respectively.

Fixes #432.
2017-02-17 11:51:12 -05:00
Ray Speth
66998a5ae1 [SCons] Keep SCons initial PATH when propagating PATH
Fixes errors on Windows when Visual Studio is not on the PATH but has been
found by SCons instead.
2017-02-12 17:39:13 -05:00
Ray Speth
eae9250f2e [SCons] Print propagated environment variables in 'verbose' mode 2017-02-11 16:39:00 -05:00
Ray Speth
3c82c3a6c6 [SCons] Propagate PATH environment variable by default 2017-02-11 16:36:44 -05:00
Ray Speth
e5edc319de [SCons] Fix propagation of user-specified environment variables
The listify function no splits on commas
2017-02-11 16:35:07 -05:00
Ray Speth
78d5809d6f [Samples] Add C++ OpenMP example 2017-01-28 15:07:15 -05:00
Ray Speth
8e89bbb8d2 Add methods for accessing the git commit used when compiling 2017-01-20 22:43:56 -05:00
Ray Speth
26651cc72c Bump development version to 2.4.0a1 2017-01-20 16:16:32 -05:00
Ray Speth
4b974219b5 [SCons] Fix installation location for Debian Python packages 2017-01-12 20:23:58 -05:00
Ray Speth
6546c08f29 Bump version and copyright year for 2.3.0 release 2017-01-12 14:00:35 -05:00
Bryan W. Weber
4beaa1b19b [Doc] Clarify lapack_ftn_string_len_at_end docs 2017-01-12 13:43:39 -05:00
Bryan W. Weber
48f43cf015 [SCons/Doc] Update/reformat docs for SCons options 2017-01-12 13:43:39 -05:00
Ray Speth
e7923cedbb [SCons] Remove unnecessary configuration tests 2016-12-30 13:26:50 -05:00
Bryan W. Weber
3014b7af89 [SCons] Fail the numpy check more gracefully
An import error with NumPy caused the build to fail when it shouldn't.
This fixes that and fixes #414. Also implement a minimum version
warning check with NumPy. The warning message is printed if the NumPy
version that's found is less than the version we test with.
2016-12-30 13:23:54 -05:00
Bryan W. Weber
04b5498a24 [SCons] Refactor Cython check to error if min_version not met
Previously, the warning message would print, but the full package would be built anyways.
This caused errors later in the build process that this check is supposed to handle.
2016-12-30 13:23:54 -05:00
Bryan W. Weber
c7555f1eae [SCons] Deprecate the new Python interface option 2016-12-30 13:23:54 -05:00
Ray Speth
fa699be425 [SCons] Clang can also generate coverage info 2016-12-10 18:44:30 -05:00
Bryan W. Weber
b495fe8913 [SCons] Fix missing comma in finding 3to2 on non-Windows 2016-12-09 20:13:22 -05:00
Bryan W. Weber
2024d0f08a [SCons] Fix calling 3to2 on Windows with conda 3to2 package
Fixes #408
2016-12-09 20:13:22 -05:00
Bryan W. Weber
086e640e46 [SCons] Use subprocess.check_output in getCommandOutput 2016-12-09 20:13:22 -05:00
Ray Speth
95e1ee49dc Bump version to 2.3.0b1 2016-11-29 20:36:50 -05:00
Ray Speth
d7819af947 [SCons] Make versioning of cantera_shared optional
Also, disable by default on MinGW to work around a SCons bug
2016-11-25 23:42:00 -05:00
Ray Speth
c677d13866 [SCons] Fix compilation when system Eigen is specified
Also add note about adding /usr/include/eigen3 if needed
2016-11-14 17:00:12 -05:00
Bryan W. Weber
7d3ebdd358 [SCons] Check for NumPy using python_cmd if specified 2016-11-12 17:40:11 -05:00
Bryan W. Weber
adcd5dec3c [SCons] Use python3_array_home option 2016-11-12 17:40:11 -05:00
Ray Speth
145335880f [SCons] Move PCH-related files out of include to avoid installing them 2016-11-04 11:36:13 -04:00
Ray Speth
baa0a24905 [SCons] Fix permissions error when installing to stage directory 2016-11-02 21:37:42 -04:00
Ray Speth
2a8ac43308 [SCons] Add fmt.h to system.h and improve PCH dependency handling 2016-10-28 12:40:53 -04:00
Ray Speth
e3dfc35ca1 [SCons] Use precompiled header to speed up compilation with MSVC
Update Appveyor config to turn off debug info so PCH can be used
2016-10-28 12:05:46 -04:00
Ray Speth
cbcce07981 [SCons] Use precompiled header to speed up compilation with GCC/Clang 2016-10-27 19:59:35 -04:00
Ray Speth
7724c841a1 Handle _cantera.h header file produced by newer versions of Cython 2016-10-23 17:19:11 -04:00
Ray Speth
4b57ee3d4c [SCons/Doc] Formalize dependency on Boost 2016-10-22 19:03:20 -04:00
Ray Speth
89d0c5601f [Python] Add CanteraError class for execptions
Anything that raises a CanteraError in C++ will now raise CanteraError in
Python, instead of the more generic RuntimeError.

This change increases the required Cython version to 0.23 or newer.
2016-10-18 22:58:14 -04:00
Ray Speth
ad7a02d0e9 Add support for Sundials 2.7.0 2016-10-15 20:50:15 -04:00
Ray Speth
0c1eb4cd89 [Doc] Include summaries of each example in index of Matlab examples 2016-10-14 17:06:45 -04:00
Ray Speth
a35a0cb510 [Doc] Include summaries of each example in index of Python examples 2016-10-14 17:06:45 -04:00
Bryan W. Weber
5435af2d9e
Fix configuration Fortran environment
SCons was using gfortran to build and ifort to link
when ifort was specified in cantera.conf. This ensures
the check function has the correct Fortran in the
environment to compile the test.
2016-08-15 21:40:24 -04:00
Ray Speth
e70e5bf5be [SCons] Fix default Python module installation path on Debian/Ubuntu
If Cantera is being installed to /usr/local, then on Debian-based distros, we
want the Python module to end up in /usr/local/lib/pythonX.Y/dist-packages,
which is actually the default behavior. However, /usr/local/... is *not* the
default installation prefix for Python modules on some other distros (On Fedora,
at least, it's /usr/) so using the default needs to be conditioned on the actual
distro.
2016-07-29 14:52:42 -04:00
Ray Speth
cc2725ca37 Bump version to 2.3.0a3 2016-07-27 19:00:02 -04:00
Ray Speth
feca44aa2d [SCons] Install to lib64 directory on operating systems that use this
Resolves #318.
2016-07-25 14:42:46 -04:00
Ray Speth
908e620325 [SCons] Generate versioned shared objects for cantera_shared.so
See #318.
2016-07-25 14:42:45 -04:00
Ray Speth
3261b4108a [SCons] Link Fortran sample programs to the correct standard library 2016-07-20 18:43:41 -04:00
Ray Speth
91161f0bc2 [SCons] Make check for Fortran compiler more robust
If we can compile and run an F90 program that is sufficient. The
previous test required the C compiler to be able to link to the
Fortran standard library, which isn't actually necessary, and would
fail in some cases (such as brew-installed gfortran on OS X).
2016-07-19 18:31:17 -04:00
Ray Speth
8ef4f6445f [SCons] Validate values of target_arch 2016-07-19 17:41:16 -04:00
Ray Speth
bdb088da53 [SCons] Check for numpy before deciding to build the Python3 module 2016-07-13 17:11:34 -04:00
Ray Speth
97e84aaf9b [SCons] Fix auto-update of fmt submodule 2016-07-05 14:25:28 -04:00