Skip to content

Commit 315e865

Browse files
committed
update README
1 parent 19a21e5 commit 315e865

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

README.rst

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ Useful Links
3333
Quickstart
3434
----------
3535

36-
Click here to start an interactive online Jupyter Notebook with an example OGDF graph where you can try out ``ogdf-python``: |binder|
36+
| Click here to start an interactive online Jupyter Notebook with an example OGDF graph where you can try out ``ogdf-python``: |binder|
37+
| Simply re-run the code cell to see the graph. You can also find further examples next to that Notebook (i.e. via the folder icon on the left).
3738
38-
Simply re-run the code cell to see the graph. You can also find further examples next to that Notebook (i.e. via the folder icon on the left).
3939
To get a similar Jupyter Notebook with a little more compute power running on your local machine, use the following install command and open the link to ``localhost``/``127.0.0.1`` that will be printed in your browser:
4040

4141
.. code-block:: bash
@@ -45,7 +45,11 @@ To get a similar Jupyter Notebook with a little more compute power running on yo
4545
4646
The optional ``[quickstart]`` pulls in matplotlib and jupyter lab as well as a ready-to-use binary build of the OGDF via `ogdf-wheel <https://github.com/ogdf/ogdf-wheel>`_.
4747
Please note that downloading and installing all dependencies (especially building ``cppyy``) may take a moment.
48-
Alternatively, see the instructions `below <#manual-installation>`_ for installing ``ogdf-python`` without this if you want to use your own local build of the OGDF.
48+
If you want to use your own local build of the OGDF, see the instructions `below <#manual-installation>`_ for installing ``ogdf-python`` without ``ogdf-wheel``.
49+
50+
.. note:: We currently support Linux, MacOS on Intel and Apple Silicon, and the Windows Subsytem for Linux.
51+
Directly running on **Windows is not supported**, see `issue 4 <https://github.com/ogdf/ogdf-python/issues/8#issuecomment-2820925482>`_.
52+
When using WSL, make sure that you are using the Linux python(3) and not the Windows python.exe, i.e. the `startup message <https://docs.python.org/3/tutorial/interpreter.html#interactive-mode>`_ of the python interpreter should end with ``on linux`` instead of ``on win32``.
4953

5054
Usage
5155
-----
@@ -91,12 +95,25 @@ Furthermore, you will need a local shared library build (``-DBUILD_SHARED_LIBS=O
9195
If you didn't install the OGDF globally on your system,
9296
either set the ``OGDF_INSTALL_DIR`` to the prefix you configured in ``cmake``,
9397
or set ``OGDF_BUILD_DIR`` to the subdirectory of your copy of the OGDF repo where your
94-
`out-of-source build <https://ogdf.github.io/doc/ogdf/md_doc_build.html#autotoc_md4>`_ lives.
98+
`out-of-source build <https://ogdf.github.io/doc/ogdf/md_doc_build.html#autotoc_md4>`_ (and especially the generated ``OgdfTargets.cmake`` file) lives.
9599

96100
.. code-block:: bash
97101
98102
$ pip install ogdf-python
99-
$ OGDF_BUILD_DIR=~/ogdf/build-debug python3
103+
$ OGDF_BUILD_DIR=~/ogdf/build-release python3
104+
105+
Debug and Release Mode
106+
^^^^^^^^^^^^^^^^^^^^^^
107+
Starting with OGDF 2025.10 (Foxglove), your chosen build mode (debug or release) also affects
108+
the name of the built shared libraries (e.g. ``libOGDF-debug.so`` instead of ``libOGDF.so``) as well as
109+
the location of the header file containing configuration information (``ogdf-{debug,release}/ogdf/basic/internal/config_autogen.h``).
110+
By default, ogdf-python will attempt to load the release versions, even if you only have the debug version built/installed.
111+
To load the debug versions instead, set the environment variable ``OGDF_PYTHON_MODE=debug``.
112+
113+
.. code-block:: bash
114+
115+
$ OGDF_BUILD_DIR=~/ogdf/build-debug OGDF_PYTHON_MODE=debug python3
116+
$ OGDF_PYTHON_MODE=debug python3 # also works if you have both versions installed next to each other
100117
101118
Pitfalls
102119
--------

0 commit comments

Comments
 (0)