Skip to content

Commit 8e4d914

Browse files
authored
Merge pull request #199 from simphony/dev
Merge release 2.4.5.
2 parents f0e49f8 + ff09e50 commit 8e4d914

File tree

2 files changed

+53
-35
lines changed

2 files changed

+53
-35
lines changed

docs/source/installation.md

Lines changed: 49 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
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

4730
After installing OSP-core, you can install your ontology namespaces.
4831
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>
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
6246
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
7660
./install_engine.sh
7761
```
7862

79-
Now the wrapper can be installed:
63+
Now, the wrapper can be installed:
8064

8165
```shell
8266
python3 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+
```

docs/source/links.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ The following table describes the compatibilities between of SimPhoNy docs and O
5757
============= ==========
5858
SimPhoNy docs OSP-core
5959
============= ==========
60-
2.4.4 3.5.8
61-
2.4.3 3.5.5
62-
2.4.2 3.5.4
60+
2.4.5 3.7.0
61+
2.4.4 3.5.8-beta
62+
2.4.3 3.5.5-beta
63+
2.4.2 3.5.4-beta
6364
2.4.1 3.5.3.1-beta
6465
2.4.0 3.5.2-beta
6566
2.3.x 3.4.0-beta

0 commit comments

Comments
 (0)