Commit Graph

24 Commits

Author SHA1 Message Date
Ingmar Schoegl
c1ca2d6fb2 Remove interfaces/*/.gitignore 2022-08-09 10:48:25 -04:00
Bryan Weber
5b35d8b9c9 [yaml2ck] Add typing_extensions for py37 compat 2022-07-11 06:10:36 +02:00
Travis Sikes
2eb3918244 yaml2ck.py
Removed redundant yaml reading
Uses Cantera's new notes
Refactored to classes

Co-Authored-By: Kyle Niemeyer <kyleniemeyer@fastmail.com>
Co-Authored-By: Phillip Mestas <phillip.mestas51@gmail.com>
Co-Authored-By: Parker Clayton <17040941+parkerclayton@users.noreply.github.com>

Update

Chebyshev Fix

Bryan Changes - Part Thermo

Update yaml2ck.py
2022-07-11 06:10:36 +02:00
Ray Speth
98b0383c74 Remove XML/CTI format from Python interface 2022-05-25 04:02:58 -04:00
Ray Speth
da3985aceb [SCons] Prevent aggressive pip uninstallation of cantera-minimal
Fixes #1230
2022-04-10 12:28:05 -04:00
Ray Speth
903c184fd2 [SCons] Fix python_prefix/prefix handling for minimal Python module
Make the case where prefix is specified but python_prefix is not consistent
with how the full Python module is handled.

Fix a case where the minimal Python module could be installed to a directory
named literally 'python_prefix'.
2022-04-10 12:28:05 -04:00
Bryan Weber
a21d526f54 Address review comments 2022-03-23 13:38:09 -04:00
Bryan Weber
cfc5ee6a3f [SCons] Python minimal uses pip to install
This change mirrors the one for the Cython interface. Pip is used as
the build frontend, setuptools is used as the backend. A wheel file is
built during the 'scons build' phase to ensure that all the machinery is
working properly; this wheel is not used further.
2022-03-23 13:38:09 -04:00
Bryan Weber
951e3a74a5 [Python Minimal] Use setup.cfg configuration
This change provides similar benefits as for the other two Python
distributions. It should allow easier uploading to PyPI and now includes
the README and License files.
2021-11-26 14:56:00 -05:00
Ray Speth
29587eeba5 [SCons] Improve staged installations of Python module
Fixes setup_cantera and the post-install message to reference the path
of the Python module on the target system rather than the staging
directory.

Also, generated .pyc files no long specify the path in the staging
directory. This has no effect on the use of the .pyc files, but helps
avoid warnings/errors from packaging system linters (notably, on
FreeBSD).

Fixes #1094
2021-09-20 12:33:47 -04:00
Bryan Weber
9f2e5c74a4 [SCons] Fix type reference and missing import
In #1012, normapth was no longer exported from buildutils, but I missed
adding that import in the builder for python_minimal. In addition, Dict
is only available while type checking in buildutils, so it should be
quoted as a forward reference.
2021-06-13 18:27:23 -04:00
Bryan Weber
edf5e4cc77 Limit exported functions from buildutils
Each SConscript module imports what it needs from the stdlib.
2021-05-04 21:36:21 -04:00
band-a-prend
b3c69ac086 Fix python_minimal interface to install Cantera YAML tools
The python_minimal SConscript did't copy
cantera yaml tools to python_minimal directory
and therefore didn's install these scripts.

Signed-off-by: band-a-prend <torokhov-s-a@yandex.ru>
2021-04-10 11:16:58 -04:00
Raymond Speth
d7b5eeb844 [SCons] Fix install path logic for minimal Python module
Handle the same special cases that we take care of for the full Python
module.

Fixes #969
2021-02-08 13:28:55 -05:00
Ray Speth
d6da006e3e [SCons] Only build the Python package for Python 3.x 2018-09-19 17:59:59 -04:00
Bryan W. Weber
94ea9b585f Update SConstruct to recognize that Python 3 might be running SCons
Update and make more consistent the specification of Python package
building. Since SCons can be run by Python 3 now, we cannot assume that
the Python running SCons is Python 2. This changes a bunch of
assumptions in SConstruct about where things should be built or
installed. This commit addresses those assumptions by making the options
for Python 2 and Python 3 symmetric.
2017-11-26 16:48:40 -05:00
Bryan W. Weber
136c86636e Make the minimal Python interface compatible with Python 3
Use relative imports in the package, compatible with Python 2 and 3
2017-11-26 16:48:40 -05:00
Bryan W. Weber
fea1a36294 Rename minimal Python interface package
The name 'Cantera (minimal)' conflicts with PEP 503 because of the
parentheses.
2016-08-11 19:10:16 -04:00
Bryan W. Weber
ca3a09a3d4 Add setuptools directories to python_minimal .gitignore 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
57856254f7 Change Python module URL to point to cantera.org 2015-03-10 22:41:49 +00:00
Ray Speth
eb468b6a48 [SCons] Fix setting 'python_module_loc' with minimal Python module 2014-09-18 22:59:05 +00:00
Ray Speth
4f3dd0624f [SCons] Fix build errors when path to Python contains spaces 2014-07-25 18:32:54 +00:00
Ray Speth
b5e540c903 [Python] Remove the legacy Python module 2013-12-09 01:35:08 +00:00