Skip to content
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

Document compilation in conda environment #181

Closed
ischoegl opened this issue Mar 24, 2022 · 6 comments
Closed

Document compilation in conda environment #181

ischoegl opened this issue Mar 24, 2022 · 6 comments
Assignees
Labels
documentation-update An update is needed to the documentation

Comments

@ischoegl
Copy link
Member

ischoegl commented Mar 24, 2022

Cantera/cantera#1191 introduced some additional simplifications for build processes started from a conda environment. While conda-based builds are convenient (and already actively used for the Sundials and windows-2022 runners), this capability is currently undocumented.

From a personal perspective, I have working conda-based builds on both Linux (Fedora) and Windows. I assume that this will work out-of-the-box on OSX, but do not have the ability to check. Especially on Windows, the installation process is significantly easier than what is currently documented on the website.

@ischoegl
Copy link
Member Author

ischoegl commented Mar 24, 2022

@bryan / @decaluwe ... do either of you have any feedback on building within conda on OSX? In particular, I'd be interested whether running

(cantera-dev) $ scons build && scons install

works without having to add any configuration options (as long as the conda environment cantera-dev is properly set up), and whether the resulting installation is fully usable without having to modify any paths?

@ischoegl ischoegl self-assigned this Mar 24, 2022
@speth
Copy link
Member

speth commented Mar 26, 2022

I tried this on macOS, and the above steps work well, as does the Python module.

However, scons test fails due to some issues with library paths if any of the library dependencies (SUNDIALS, yaml-cpp, etc) are taken from the Conda install. For example, running just scons test-general fails with:

dyld[92557]: Library not loaded: @rpath/libsundials_cvodes.6.dylib
  Referenced from: /Users/speth/src/cantera/build/test/general/general
  Reason: tried: '/usr/local/lib/libsundials_cvodes.6.dylib' (no such file), '/usr/lib/libsundials_cvodes.6.dylib' (no such file)

Likewise, the C++ sample programs that are installed into the conda environment can be compiled easily, but then fail to run with a similar error.

This seems to be a result of SCons not wanting to specify the rpath on macOS in the same way that it does on Linux, even though I think the differences should be small, but haven't been able to figure out how to fix that just yet.

@ischoegl
Copy link
Member Author

Great to hear that the installation works! But too bad that the library paths aren’t resolved the same way as on Linux and Windows. It’s really surprising that the test suite breaks … certainly didn’t expect that!

@speth
Copy link
Member

speth commented Mar 27, 2022

The test issue should be resolved by Cantera/cantera#1229.

@ischoegl
Copy link
Member Author

Turns out that there is documentation after all, so it just needs to be updated.

@ischoegl ischoegl added the documentation-update An update is needed to the documentation label Mar 27, 2022
@ischoegl
Copy link
Member Author

Resolved via #184.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation-update An update is needed to the documentation
Projects
None yet
Development

No branches or pull requests

2 participants