Skip to content
Zhang Yunjun edited this page Feb 28, 2021 · 3 revisions

Welcome to the PySolid wiki!

Update all pre-compiled C extensions (solid.cpy*.so) for solid.for

Create conda environments for different python versions as below, if you have not done so. Run conda env list to check it.

cd ~/tools/PySolid/docs
conda create --name test36; conda activate test36; conda install python=3.6 --file requirements.txt --yes; conda deactivate
conda create --name test37; conda activate test37; conda install python=3.7 --file requirements.txt --yes; conda deactivate
conda create --name test38; conda activate test38; conda install python=3.8 --file requirements.txt --yes; conda deactivate
conda create --name test39; conda activate test39; conda install python=3.9 --file requirements.txt --yes; conda deactivate

Run the following to compile the solid.for for all supported python versions.

cd ~/tools/PySolid/pysolid
conda activate test36; f2py -c -m solid solid.for; ./../test/test.py; conda deactivate
conda activate test37; f2py -c -m solid solid.for; ./../test/test.py; conda deactivate
conda activate test38; f2py -c -m solid solid.for; ./../test/test.py; conda deactivate
conda activate test39; f2py -c -m solid solid.for; ./../test/test.py; conda deactivate

Repeat the above process on macOS and Linux systems.

Clone this wiki locally