Development¶
Development installation¶
Due due legacy compatibility, the development installation needs to be done
- either manually, by following these steps:
- Create a directory (e.g.
src/
). - Add this directory to the $PYTHONPATH shell variable (= traditional way).
- Put Owlready sources in that directory (in a subdirectory named
src/owlready2/
).
- Create a directory (e.g.
- or with pip by following these steps:
- Create a virtual environment for development and activate it.
- Create an directory with an arbitrary name, e.g.
mkdir owlready_dev
. - Move or cloning the Owlready2 repository into this directory and change into it.
- Run
pip install -e .[test]
inside of this Owlready directory. - In case Python.h is missing, install python3-dev (e.g.
sudo apt-get install python3-dev
). - Run the setup_develop_mode.py script :
python setup_develop_mode.py
inside of this Owlready directory (there are explainations in the script, why this is necessary).
Finally, To test everything, cd into the ‘test’ directory and run python regtest.py
.