msspec_python3/README.md

65 lines
1.3 KiB
Markdown
Raw Normal View History

2019-11-15 16:13:02 +01:00
Introduction
============
This is the Python MsSpec version with support for Python 3.x and dynamic memory allocation for Phagen and Spec
To work with the git repository
===============================
2019-11-15 11:16:06 +01:00
2020-03-31 18:29:41 +02:00
You can clone this repository onto your local computer using git
```Bash
git clone https://git.ipr.univ-rennes1.fr/epsi/msspec_python3.git
```
This will create a folder named "msspec_python3" with all the source code inside.
It is higly recommended to work in a Python virtual environment.
To create one, you can use:
```Bash
virtualenv --python=python3 msspec_venv
```
or
```Bash
virtualenv --python=python3 --system-site-packages msspec_venv
```
to activate the virtual environment (if you are in the folder where you created "msspec\_venv"):
```Bash
source ./msspec_venv/bin/activate
```
2020-03-31 18:29:41 +02:00
Now you can build the program, go in the source folder
```Bash
2020-03-31 18:29:41 +02:00
cd msspec_python3/src
```
2020-03-31 18:29:41 +02:00
Install the python package dependencies.
```Bash
2020-03-31 18:29:41 +02:00
pip install -r setup_requirements.txt
pip install -r requirements.txt
```
2020-03-31 18:29:41 +02:00
You need to compile the fortran libs. This is done by the scons (Software Construction) program
```Bash
2020-03-31 18:29:41 +02:00
scons
```
2020-03-31 18:29:41 +02:00
Finally, install the package in develop mode:
```Bash
2020-03-31 18:29:41 +02:00
pip install -e .
```
2020-03-31 18:29:41 +02:00
That's all. All you need to do each time you want to work with msspec is activating the virtual environment