Skip to content

Commit 9ac869b

Browse files
README: update installation instructions to build PySolid from source (#102)
+ Change pip command to use the local PySolid repository when installing the cloned repository. + Fix export command of python path.
1 parent ddae45b commit 9ac869b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,23 +48,24 @@ conda install -c conda-forge fortran-compiler --file PySolid/requirements.txt --
4848
conda create --name pysolid fortran-compiler --file PySolid/requirements.txt --file PySolid/tests/requirements.txt
4949
conda activate pysolid
5050

51-
# option 3: have a Fortran compiler already installed and use pip to install the rest dependencies
51+
# option 3: have a Fortran compiler already installed and use pip to install the dependencies
5252
python -m pip install -r PySolid/requirements.txt -r PySolid/tests/requirements.txt
5353
```
5454

5555
##### c. Install PySolid
5656

5757
```bash
5858
# option 1: use pip to install pysolid into the current environment
59-
python -m pip install PySolid
59+
python -m pip install ./PySolid
6060

6161
# option 2: use pip to install pysolid in develop mode (editable) into the current environment
62-
python -m pip install -e PySolid
62+
python -m pip install -e ./PySolid
6363

6464
# option 3: manually compile the Fortran code and setup environment variable
6565
cd PySolid/src/pysolid
6666
f2py -c -m solid solid.for
67-
export PYTHONPATH=${PYTHONPATH}:~/tools/PySolid
67+
# Replace <path-to-folder> with proper path to PySolid main folder
68+
export PYTHONPATH=${PYTHONPATH}:<path-to-folder>/PySolid/src
6869
```
6970

7071
##### d. Test the installation

0 commit comments

Comments
 (0)