Skip to content

Commit 5872faa

Browse files
committed
feat: add description how to install the package into the venv, add some missing description
1 parent 9056009 commit 5872faa

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,28 @@ updated. For example manually like so to follow the latest development:
5959
Building the package
6060
------------
6161
Once those steps are done, the library can be build using the `setup.py` script.
62+
If you want to create virtual environment on other directory, not equal python-libsbml, you need to set SWIG_EXECUTABLE environment variable.
6263

63-
python setup.py build
64+
python -m venv /path/to/your/venv
65+
66+
source /path/to/your/venv/bin/activate
67+
68+
pip install --upgrade pip setuptools wheel cmake swig
69+
70+
export SWIG_EXECUTABLE=$(which swig) && python setup.py build
6471

6572
to build the experimental package, all that needs to be done is to set the environment variable `LIBSBML_EXPERIMENTAL=1` prior to building
6673

74+
Install the package into the virtual environment:
75+
------------
76+
This is main part of the process, you can install the build package into the virtual environment using the following command:
77+
78+
source /path/to/your/venv/bin/activate # Activate the virtual environment
79+
80+
python setup.py bdist_wheel
81+
82+
pip install dist/python_libsbml-*.whl
83+
6784
⁇ Getting Help
6885
------------
6986

0 commit comments

Comments
 (0)