Update compilation authored by Rémy Mozul's avatar Rémy Mozul
...@@ -71,10 +71,13 @@ but the one provided should be up-to-date ...@@ -71,10 +71,13 @@ but the one provided should be up-to-date
#### Installation #### #### Installation ####
Our policy is to not mess with default system paths. So instead we advise to either using *virtual environment* to install or to use an environment variable to add to python the path If a *virtual environment* is used, then the `make install` command has already taken car of this step. It is directly possible to check on the [first steps](./first step) section.
to our build directory. In general adding the following lines to your *.bashrc* (Linux)
or *.profile* (MacOS) file does the trick. Of course you have to replace *mysourcepath* In any other case, our policy is to not mess with default system paths. So our recommendation is
by the path to your own `lmgc90_user_xxx` directory (something like `/users/name/LMGC90/lmgc90_user_xxx/` and replacing `xxx` by the version you downloaded). to use an environment variable to add to python the path to our build directory.
In general adding the following lines to your *.bashrc* (Linux) or *.zshrc* (MacOS) file
does the trick. Of course you have to replace *mysourcepath* by the path to your own `lmgc90_user_xxx` directory (something like `/users/name/LMGC90/lmgc90_user_xxx/`
and replacing `xxx` by the version you downloaded).
```shell ```shell
if [ -z ${PYTHONPATH} ]; then if [ -z ${PYTHONPATH} ]; then
export PYTHONPATH=mysourcepath/build export PYTHONPATH=mysourcepath/build
... ...
......