Trying to compile on Windows 10 without WSL.
Development environment:
To run the repast4py setup.py:
- Checkout the project
- Launch a 64-bit Visual Studio command console "x64 Native Tools Command Prompt for VS 2022" (assumes also using 64-bit python)
- use
where cl to find the full path of the compiler, and then set the 'CC' environment variable, e.g.
set CC="C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\cl.exe"
- Use quotes around the path otherwise the python setup will fail
python setup.py build_ext --inplace
python -m build --wheel
Trying to compile on Windows 10 without WSL.
Development environment:
To run the repast4py setup.py:
where clto find the full path of the compiler, and then set the 'CC' environment variable, e.g.set CC="C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\cl.exe"python setup.py build_ext --inplacepython -m build --wheel