1
1
# 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.
5
12
6
13
``` shell
7
14
# virtual environment
@@ -16,33 +23,9 @@ or a [conda](https://docs.conda.io/en/latest/) environment:
16
23
~ /test$ conda activate < env name>
17
24
```
18
25
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 ` .
46
29
47
30
After installing OSP-core, you can install your ontology namespaces.
48
31
We provide the tool [ ` pico ` ] ( ./utils.md#pico-installs-cuds-ontologies )
@@ -56,7 +39,8 @@ python -m osp.core.pico install <path/to/ontology.yml>
56
39
```
57
40
58
41
## 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:
60
44
61
45
``` shell
62
46
git clone https://github.com/simphony/< some-wrapper> .git
@@ -76,7 +60,7 @@ It will automatically call `install_engine_requirements.sh`, where the engine sp
76
60
./install_engine.sh
77
61
```
78
62
79
- Now the wrapper can be installed:
63
+ Now, the wrapper can be installed:
80
64
81
65
``` shell
82
66
python3 setup.py install
@@ -90,3 +74,36 @@ Simply run the `docker_install.sh` script. There is no need to install OSP-core
90
74
``` shell
91
75
./docker_install.sh
92
76
```
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