11# Installation
2- For the installation and usage of the framework Python 3.6 or higher is needed.
3- We * highly* encourage the use of a [ virtual environment] ( https://docs.python.org/3/tutorial/venv.html )
4- or a [ conda] ( https://docs.conda.io/en/latest/ ) environment:
2+
3+ For the installation and usage of the framework Python 3.6 or higher is
4+ needed. OSP-core is available on PyPI, so it can be installed using ` pip ` :
5+
6+ ``` shell
7+ ~ /test$ pip install osp-core
8+ ```
9+
10+ However, we * highly* encourage the use of a [ virtual environment] ( https://docs.python.org/3/tutorial/venv.html )
11+ or a [ conda] ( https://docs.conda.io/en/latest/ ) environment.
512
613``` shell
714# virtual environment
@@ -16,33 +23,9 @@ or a [conda](https://docs.conda.io/en/latest/) environment:
1623~ /test$ conda activate < env name>
1724```
1825
19- ## OSP-core installation
20- First, the repository must be cloned:
21-
22- ``` shell
23- git clone https://github.com/simphony/osp-core.git
24- cd osp-core
25- ```
26-
27- The installation is based on setuptools:
28-
29- ``` sh
30- # build and install (recommended)
31- pip install .
32-
33- # alternative
34- python3 setup.py install
35- ```
36-
37- or:
38-
39- ``` sh
40- # build for in-place development (recommended)
41- pip install -e .
42-
43- # alternative
44- python3 setup.py develop
45- ```
26+ Unfortunately, OSP-core is not available on the Anaconda Repository, so
27+ in both cases, after setting up the environment, it must be installed with
28+ ` pip install osp-core ` .
4629
4730After installing OSP-core, you can install your ontology namespaces.
4831We provide the tool [ ` pico ` ] ( ./utils.md#pico-installs-cuds-ontologies )
@@ -56,7 +39,8 @@ python -m osp.core.pico install <path/to/ontology.yml>
5639```
5740
5841## Wrapper installation
59- The installation of a wrapper is similar. First, the repository is cloned:
42+ Wrappers are currently not available on PyPI, so they must be installed
43+ from source. First, the repository is cloned:
6044
6145``` shell
6246git clone https://github.com/simphony/< some-wrapper> .git
@@ -76,7 +60,7 @@ It will automatically call `install_engine_requirements.sh`, where the engine sp
7660./install_engine.sh
7761```
7862
79- Now the wrapper can be installed:
63+ Now, the wrapper can be installed:
8064
8165``` shell
8266python3 setup.py install
@@ -90,3 +74,36 @@ Simply run the `docker_install.sh` script. There is no need to install OSP-core
9074``` shell
9175./docker_install.sh
9276```
77+
78+
79+ ## Installing OSP-core from source
80+
81+ If you are a developer or an advanced user, you might be interested in
82+ installing OSP-core from source.
83+
84+ To do so, first the repository must be cloned:
85+
86+ ``` shell
87+ git clone https://github.com/simphony/osp-core.git
88+ cd osp-core
89+ ```
90+
91+ The installation is based on setuptools:
92+
93+ ``` sh
94+ # build and install (recommended)
95+ pip install .
96+
97+ # alternative
98+ python3 setup.py install
99+ ```
100+
101+ or:
102+
103+ ``` sh
104+ # build for in-place development (recommended)
105+ pip install -e .
106+
107+ # alternative
108+ python3 setup.py develop
109+ ```
0 commit comments