Add a dev-envrionment.yml to simplify setting up a dev environment #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This defines a conda environment suitable for bootstrapping csp development. If we add this and update the build instructions in the wiki to use it, we can get rid of a big chunk of the OS-specific build environment setup instructions.
I successfully built
csp
and ran the tests on a M3 Macbook Pro and a aarch64 Ubuntu VM running on the same machine and this seems to work on both systems.To get this to work, you'll need to install anaconda or miniconda, such that
conda
is visible in your PATH, with the following configuation settings to activateconda-forge
:Then create a new conda environment using this file and activate it:
And then build and install
csp
into conda's python environment as discussed in the wiki.Note that users on macs will still need to get
gcc
from homebrew and manually specify homebrew's g++ in theirmake build
command since conda-forge doesn't provide g++ except on linux.If this is OK as-is and it can be merged, I'll update the build instructions on the wiki to suggest starting with a conda environment and to use this file. I'll go ahead and leave the OS-specific non-conda instructions as well, but move them to a less prominent place.