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
#### 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
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*
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).
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.
In any other case, our policy is to not mess with default system paths. So our recommendation is
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
if [ -z ${PYTHONPATH} ]; then
export PYTHONPATH=mysourcepath/build
......
......