mozul created page: compilation authored by Rémy Mozul's avatar Rémy Mozul
...@@ -45,17 +45,15 @@ But the one provided shoud be up-to-date ...@@ -45,17 +45,15 @@ But the one provided shoud be up-to-date
Our policy is to not mess with default system paths. So instead we advise to 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. 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) 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 file does the trick. Of course you have to replace *mysourcepath* by the path to
your own building directory (in the example above `~/Desktop/LMGC90/lmgc90_user/build`). your own `lmgc90_user` directory (in the example above `~/Desktop/LMGC90/lmgc90_user/`).
Basically it is what returns the command *pwd* when ran in the same directory you
ran the commands *cmake* and *make*.
```shell ```shell
if [ -z ${PYTHONPATH} ]; then if [ -z ${PYTHONPATH} ]; then
export PYTHONPATH=mybuildpath export PYTHONPATH=mysourcepath/build
else else
export PYTHONPATH=${PYTHONPATH}:mybuildpath export PYTHONPATH=${PYTHONPATH}:mysourcepath/build
fi fi
export PATH=${PATH}:mysourcepath/src/addons
``` ```
## <a name=precompiled> Windows </a> ## ## <a name=precompiled> Windows </a> ##
... ...
......