Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix the instructions on how to use local installs of python bindings
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 15 Jun 2023 18:58:00 +0000 (20:58 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 15 Jun 2023 18:58:18 +0000 (20:58 +0200)
docs/source/Installing_SimGrid.rst

index 2e1143b..7cd2404 100644 (file)
@@ -426,11 +426,15 @@ simgrid without downloading the source with pip:
   $ pip install simgrid
 
 If you installed SimGrid to a non-standard directory (such as ``/opt/simgrid`` as advised earlier), you should tell python where
-to find the libraries as follows (notice the ``/lib`` added to the configured prefix).
+to find the libraries as follows (notice the elements suffixed to the configured prefix).
 
 .. code-block:: console
 
-  $ PYTHONPATH="/opt/simgrid/lib" python your_script.py
+  $ PYTHONPATH="/opt/simgrid/lib/python3/dist-packages" LD_LIBRARY_PATH="/opt/simgrid/lib" python your_script.py
 
-You can add the PYTHONPATH variable to your bash profile to not specify it each time by adding this line to your ``~/.profile``:
-``export PYTHONPATH=$PYTHONPATH:/opt/simgrid/lib/``
+You can add those variables to your bash profile to not specify it each time by adding these lines to your ``~/.profile``:
+
+.. code-block:: console
+
+  export PYTHONPATH="$PYTHONPATH:/opt/simgrid/lib/python3/dist-packages"
+  export LD_LIBRARY_PATH="$PYTHONPATH:/opt/simgrid/lib"