mozul created page: compilation authored by Rémy Mozul's avatar Rémy Mozul
...@@ -42,6 +42,21 @@ It will build the sphinx documentation in: ...@@ -42,6 +42,21 @@ It will build the sphinx documentation in:
* docs/Pre/ * docs/Pre/
But the one provided shoud be up-to-date But the one provided shoud be up-to-date
Our policy is to not mess with default system paths. So instead we advise to
use a 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 *mybuildpath* by the path to
your own building directory (in the example above `~/Desktop/LMGC90/lmgc90_user/build`).
Basically it is what returns the command *pwd* when ran in the same directory you
ran the commands *cmake* and *make*.
```shell
if [ -z ${PYTHONPATH} ]; then
export PYTHONPATH=mybuildpath
else
export PYTHONPATH=${PYTHONPATH}:mybuildpath
fi
```
## <a name=precompiled> Windows </a> ## ## <a name=precompiled> Windows </a> ##
...@@ -53,3 +68,10 @@ choose the corresponding binaries of LMGC90: ...@@ -53,3 +68,10 @@ choose the corresponding binaries of LMGC90:
Then unzip the downloaded in the `lmgc90_user/build` directory. It should create a `pylmgc90-xxxx-py27` (where `xxxx` Then unzip the downloaded in the `lmgc90_user/build` directory. It should create a `pylmgc90-xxxx-py27` (where `xxxx`
is to replaced by `i686` or `x86_64` depending on the downloaded version). is to replaced by `i686` or `x86_64` depending on the downloaded version).
Finally start the `Spyder` program. Then click on the upper line `tools` and `PYTHONPATH manager`.
Then click `Add a path` on lower left corner and select the path to the directory
previously unzipped ( *.../lmgc90_user/build/pylmgc90-xxxx-py27*).
Finally, so that the previous step is taken into account in your current environment, simply restart `Spyder`
program.
\ No newline at end of file