-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #425 from GEMScienceTools/fix-tests
Fix some tests and improve installation instructions
- Loading branch information
Showing
11 changed files
with
112 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,29 @@ The *oq-mbt* is installed with the procedure described in the following. | |
Note that this procedure implies the installation of the OpenQuake engine. | ||
It was tested on Mac OS and Linux systems. | ||
|
||
* Open a terminal and move to the folder where to intend to install the tools; | ||
* Create a virtual environment with ``python3 -m venv venv`` | ||
* Activate the virtual environment ``source venv/bin/activate`` | ||
* Update pip ``pip install -U pip`` | ||
* Enter the virtual environment ``cd venv`` and create a directory for storing source code ``mkdir src; cd src`` | ||
* Clone the OpenQuake engine ``git clone [email protected]:gem/oq-engine.git`` | ||
* Complete a development installation with ``cd ..`` then ``pip install -r ./src/oq-engine/requirements-py36-macos.txt`` and finally ``pip install -e ./src/oq-engine/`` | ||
* Open a terminal and move to the folder where you intend to install the tools; | ||
* Upgrade pip: | ||
|
||
```bash | ||
python -m pip install --upgrade pip | ||
``` | ||
|
||
* Install the OpenQuake engine and activate its virtual environment: | ||
|
||
```bash | ||
$ git clone --depth=1 https://github.com/gem/oq-engine.git | ||
$ cd oq-engine | ||
$ python3 install.py devel | ||
$ source ~/openquake/bin/activate | ||
``` | ||
|
||
* Go to the folder where you cloned the oq-mbtk repository and complete the | ||
installation running the following commands, | ||
making sure to replace `requirements-py311-linux.txt` with the name of | ||
the file corresponding to the correct python version and operating system: | ||
|
||
```bash | ||
$ pip install -e . | ||
$ pip install -r requirements-py311-linux.txt | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.