From e8d236380438a52755eb0f7716c5012f48550d8c Mon Sep 17 00:00:00 2001 From: AndreHauschild Date: Mon, 24 Feb 2025 18:33:39 +0100 Subject: [PATCH] Fix installation instructions to build PySolid from source Change pip command to use the local PySolid repository when installing the cloned repository. Fix export command of python path. --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3f12142..1042391 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ conda install -c conda-forge fortran-compiler --file PySolid/requirements.txt -- conda create --name pysolid fortran-compiler --file PySolid/requirements.txt --file PySolid/tests/requirements.txt conda activate pysolid -# option 3: have a Fortran compiler already installed and use pip to install the rest dependencies +# option 3: have a Fortran compiler already installed and use pip to install the dependencies python -m pip install -r PySolid/requirements.txt -r PySolid/tests/requirements.txt ``` @@ -56,15 +56,16 @@ python -m pip install -r PySolid/requirements.txt -r PySolid/tests/requirements. ```bash # option 1: use pip to install pysolid into the current environment -python -m pip install PySolid +python -m pip install ./PySolid # option 2: use pip to install pysolid in develop mode (editable) into the current environment -python -m pip install -e PySolid +python -m pip install -e ./PySolid # option 3: manually compile the Fortran code and setup environment variable cd PySolid/src/pysolid f2py -c -m solid solid.for -export PYTHONPATH=${PYTHONPATH}:~/tools/PySolid +# Replace with proper path to PySolid main folder +export PYTHONPATH=${PYTHONPATH}:/PySolid/src ``` ##### d. Test the installation