Add a windows development environment specification #123
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.
Unfortunately conda environment files don't support classifiers (conda/conda#8089) so I added a second windows-specific environment.yml file.
I was able to get the csp build to start but hit the error described in #109 (comment), so more work needs to happen to get windows builds working.
Here's how I set up my dev environment:
Install miniforge using the windows x86_64 installer.
Install visual studio 2022.
Open a visual studio command prompt or run
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat amd64. You might need slightly different syntax for powershell.clone csp:
Install the windows development environment and activate it
Note that you should see some output printed to the terminal after activating, including something at the end printing out how
vcvars64.batis getting run. If you don't see that something is wrong with your visual studio install. For me this didn't work until I manually ranvcvarsall.bat amd64once.Build dependencies using
vcpkgNote that this is the same as
make dependencies-winin the makefile, but that doesn't work right now because the path separator is incorrect. There's also a check at the top of the makefile for the number of processors that errors on windows. So the makefile needs some work if we want to support it on windows.Build csp itself
And then you should hit the same error as me.