New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate and remove setup_cantera
scripts
#135
Comments
* [Shell] Deprecate shell setup scripts Related to Cantera/enhancements#135 * Update setup_cantera.csh.in * Update setup_cantera.in
I just installed 2.6.0b1 and saw this warning message. I've historically sourced |
Thanks @shunn337! I edited the first post with some advice. The short answer is that you shouldn't have to do much environment configuration anymore, unless you're doing something custom/more complicated, in which case, it's more challenging to give useful advice. |
This appears to be relevant to the tutorials on Compiling C++ Programs ... without having paths set, it becomes a little convoluted to have everything set up properly. |
In what way? The only thing I see on that page that is potentially affected is the setting of |
I'm actually not exactly sure what way. I usually let PS: I agree that |
Abstract
Deprecate and remove the two
setup_cantera
andsetup_cantera.csh
scripts. Deprecation to occur in v2.6, removal thereafter.Motivation
I don't think anyone uses these scripts. They pose a minor maintenance burden on
SConstruct
and they possibly encourage old-school practices such as exportingPYTHONPATH
to the environment.Possible Solutions
printf
statementsReversion plan
This issue also exists to collect feedback from folks who are using those scripts. If you use the
setup_cantera
scripts, please leave a comment here indicating how you use the script! Thank you 😄The complete
setup_cantera
script is copied below. The list here gives advice for each of the environment variables previously set in the script.LD_LIBRARY_PATH
: The default is for Cantera to install libraries into/usr/local/lib
which is part of the default search path for the linker and you don't need to modifyLD_LIBRARY_PATH
. This environment variable controls where the linker finds libraries. It should be handled by theSConstruct
/Makefile
/CMAKE
configuration for each of the examples, and you should copy one of those example files if you need this variable.PKG_CONFIG_PATH
: Same asLD_LIBRARY_PATH
but applies to thepkgconfig
program insteadPYTHON_CMD
: This environment variable is used to look up which version of Python should be used to runctml_writer
to convert CTI to CTML input internally. With Cantera 2.6, these input types are deprecated and will be removed after Cantera 3.0. The replacement input file format, YAML, does not require a separate converter so doesn't need Python for this purpose.PATH
: Cantera no longer installs binaries as such. All the conversion scripts for input files are installed as part of the full or minimal Python interfaces and those installations are handled bypip
after Add package workflow cantera#1158.pip
should install things into a place that is on yourPATH
, or if not, it will warn you to add that location to yourPATH
.MATLABPATH
: We recommend that you configure yourstartup.m
script to add the Cantera toolbox location.PYTHONPATH
: Adds a search location for Python packages. Highly recommended not to use in a case where you're installing the Python package; instead, letpip
install to a location that is already on Python's default search path.Hope that helps!
The full script
The text was updated successfully, but these errors were encountered: