Skip to content
Zhang Yunjun edited this page Mar 2, 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. Use the test/conda.txt with numpy version constraint instead of the default requirements.txt to maximize the compatibility of the generated C extension files.

cd ~/tools/PySolid/pysolid
conda create --name test36 --yes; conda activate test36; conda install python=3.6 --file ../test/conda.txt   --yes; conda deactivate
conda create --name test37 --yes; conda activate test37; conda install python=3.7 --file ../test/conda.txt   --yes; conda deactivate
conda create --name test38 --yes; conda activate test38; conda install python=3.8 --file ../test/conda.txt   --yes; conda deactivate
conda create --name test39 --yes; conda activate test39; conda install python=3.9 --file ../test/conda39.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