Commit graph

283 commits

Author SHA1 Message Date
Bryan W. Weber
2334410b5b Uninstall all files properly 2015-08-02 23:06:16 -04:00
Bryan W. Weber
19f4468728 Clean up after setuptools builds 2015-08-02 23:06:16 -04:00
Bryan W. Weber
b979cea3d2 Switch Cython and python interfaces to setuptools
Replace distutils with setuptools in the Cython and python_minimal
interfaces. Add console_scripts option to generate OS specific scripts to run
ck2cti, mixmaster, and ctml_writer

Remove script files that are obsoleted by console_scripts from
setuptools. Remove installation of the script modules from SConstruct.

Fix Python installers so that when a prefix directory is specified on the
command line, setuptools doesn't throw an error. The setuptools documentation at
[1] prefers setting PYTHONUSERBASE rather than PYTHONPATH. Use normpath to avoid
bugs in setuptools on Windows [2].  Specify an empty "--prefix" if the compiler
is clang to fix a bug with Homebrew Python on Mac OSX [3].

[1]: https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations
[2]: http://stackoverflow.com/q/31629398
[3]: https://github.com/Homebrew/homebrew-python/issues/187
2015-08-02 23:06:16 -04:00
Ray Speth
97b32069cf Remove leftover "fenv" cruft 2015-07-15 12:46:48 -04:00
Ray Speth
6a9dd7f9d6 Remove unused 'csvdiff' application 2015-07-15 12:20:22 -04:00
Ray Speth
c446686c85 [SCons] Fix test summary when tests are run in parallel 2015-06-19 11:53:07 -04:00
Ray Speth
484eff996b Use short form of cantera_version when looking for data directory 2015-06-14 19:51:00 -04:00
Ray Speth
eefffa78b9 [SCons] Use defined 'cantera_version' when building MSI 2015-06-14 19:47:33 -04:00
Ray Speth
7f847c3877 [SCons] Miscellaneous cleanup of SConstruct/SConscript files 2015-06-13 23:29:58 -04:00
Ray Speth
76344ea628 [SCons] Attempt auto-detection of libraries for Boost.Thread 2015-06-12 19:19:57 -04:00
Ray Speth
a6b3c23750 [SCons] Remove unnecessary check for Python 3 Cython module
We use the Python 2 version of Cython to generate the .cpp file which is
separately compiled for both Python 2 and Python 3.
2015-06-10 22:56:49 -04:00
Ray Speth
9ca2c16bc3 [SCons] Fix running test suite with minimal Python module 2015-06-08 11:52:02 -04:00
Ray Speth
416490ad7a Bump version to 2.2.0 2015-06-04 18:41:20 -04:00
Ray Speth
6190cf21e5 [Ubuntu] Fix stage prefix used for Python 3 module 2015-06-04 18:41:20 -04:00
Ray Speth
341b137766 [Doc] Capitalize proper nouns and acronyms 2015-05-25 20:58:44 -04:00
Ray Speth
772427014a Bump version to 2.2.0b1 2015-05-11 17:23:37 -04:00
Ray Speth
8ce62988a1 [SCons] Remove previously-deprecated configuration options 2015-05-11 17:23:37 -04:00
Ray Speth
c1304e9ee6 Add support for Sundials 2.6
Resolves #256.
2015-04-29 18:03:17 -04:00
Ray Speth
28210182fb [SCons] Describe allowable values for msvc_version 2014-12-12 01:36:59 +00:00
Ray Speth
de3d212062 [SCons] Deprecate unnecessary build options 2014-11-15 00:47:30 +00:00
Ray Speth
fbe8a7cd3f Make common interface to shared_ptr available
Use configure-time checks to find an available implementation of shared_ptr from
the standard library (C++11), TR1 (C++03), or Boost.
2014-11-01 00:13:39 +00:00
Ray Speth
044235c065 [SCons] Remove unnecessary uses of pjoin 2014-10-08 16:54:49 +00:00
Ray Speth
c0dc7bb922 [SCons] Setting 'msvc_version' implies 'toolchain=msvc' 2014-09-29 19:13:18 +00:00
Ray Speth
dd9bb68eaf [SCons] Clean up additional data files 2014-09-23 02:20:47 +00:00
Bryan W. Weber
73fa1a17a0 Fix bdist complains about invalid version number 2014-08-28 22:06:05 +00:00
Thomas Fiala
dfab2edb3d Properly clean up after a build.
Fixes Issue 232.
2014-08-26 22:04:55 +00:00
Harry Moffat
08fe85b4cd Check for fenv.h availability. Apparently, MS visual doesn't have C99 support before 2013, so previous commit didn't compile on MSVISUAL.
If fenv.h not available, program now error exits if fenv functions are requested.
2014-08-26 17:55:44 +00:00
Ray Speth
85abe2e008 [SCons] Update documentation for SCons commands 2014-08-25 20:02:34 +00:00
Bryan W. Weber
eeab08d683 Allow auto conversion of Python examples on Windows
3to2 cannot be called as an executable on Windows, but it can be called
as a script. Assume that the 3to2 script is installed in
PYTHONROOT\Scripts, which is the default for installation by pip.
2014-08-25 18:41:56 +00:00
Ray Speth
28d389b120 [Scons] On Windows, print compilation architecture during build process
This helps in debugging certain compilation / linker issues
2014-07-30 16:59:11 +00:00
Ray Speth
6c3867ca79 [SCons] Let SCons choose the default version of MSVC
The near-requirement of using the same version of MSVC as Python was compiled
with has been relaxed by the move to compiling the Python extension in SCons
rather than letting Distutils do it.
2014-07-25 18:33:02 +00:00
Ray Speth
4f3dd0624f [SCons] Fix build errors when path to Python contains spaces 2014-07-25 18:32:54 +00:00
Bryan W. Weber
f4041d6fb2 [Doc] Add the ability to pseudo-autodocument MATLAB code to the SConscript file 2014-07-18 14:32:53 +00:00
Ray Speth
2ee3edbe39 [SCons] Move man pages to 'share'
This fixes compatibility with Homebrew. With the default prefix '/usr/local',
this puts the man pages in /usr/local/share/man/man1/, which is usually on the
man path on other OSes as well.
2014-05-29 18:34:49 +00:00
Ray Speth
75e9d10bdf [SCons] Print path to Python interpreter when building 2014-05-08 23:02:07 +00:00
Ray Speth
8cfac61a83 Use configuration checks to determine names for 'isnan' and 'finite' 2014-05-03 17:39:33 +00:00
Ray Speth
0a1909e682 [SCons] Print config.log when SCons is in verbose mode 2014-05-03 17:39:19 +00:00
Ray Speth
4e68860165 Generate cantera.pc and Cantera.mak when using MinGW 2014-04-28 18:17:46 +00:00
Ray Speth
d2ff7dbaaa [SCons] 'clean' removes auto-generated .rst files from examples 2014-04-08 16:26:11 +00:00
Ray Speth
b2c050e545 [Doc] Add FAQ on debugging compilation issues 2014-03-28 23:12:11 +00:00
Ray Speth
5c99f683df [SCons] Add 'dump' command line target, and update FAQ 2014-03-28 23:12:06 +00:00
Ray Speth
6b6ccfaf7f [SCons] Allow 'clean' to be specified along with other targets 2014-03-18 01:42:34 +00:00
Ray Speth
d501189ce9 [SCons] Allow boost_thread_lib to specify multiple libraries 2014-03-17 02:05:13 +00:00
Ray Speth
338a54f101 [SCons] Simplify implementation of changes in r2810
Use the correct platform-independent path separator instead of assuming that it
is ':'.

Determine the PYTHONPATH variable in a single place for each Python version.
2014-03-17 02:05:09 +00:00
Harry Moffat
e032e9e56b Took out a print statement that caused crashes on some systems that don't define PYTHONPATH
Thanks Ray for pointing this out.
2014-03-16 02:52:55 +00:00
Harry Moffat
3d5aa42e77 Fixed the LD_LIBRARY_PATH and PYTHONPATH specifications for scons's test suite on multiuser linux boxes.
The user's environmental variables are now passed down to the tests. Previously they had been ignored.
All of the python tests (minimal and full) had been failing for over a year or so for any installations which actually use the
LD_LIBRARY_PATH and PYTHONPATH environmental variables, which pretty much consists of all multiuser linux
machines.
2014-03-14 23:56:55 +00:00
Ray Speth
d0b3ad3d4b [SCons] Remove deprecated 'legacy_headers' option 2014-03-13 21:35:44 +00:00
Ray Speth
6266986d7b [SCons] Add specific targets for building the docs
Documentation can be built independently of the code by using the 'scons sphinx'
and 'scons doxygen' commands, as an alternative to using the options
'sphinx_docs=y' and 'doxygen_docs=y' to 'scons build'.
2014-03-13 21:35:39 +00:00
Ray Speth
b65a27e513 [SCons] Extract common default compiler flags 2014-03-13 02:19:15 +00:00
Ray Speth
94301d22ba [Scons] Use compiler-independent method for handling NDEBUG 2014-03-13 02:19:12 +00:00