Skip to content
Merged
4 changes: 1 addition & 3 deletions docs/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ Build with Debug
To use debug information in PySCIPOpt you need to build it with the following command:

.. code-block::

export CFLAGS="-UNDEBUG"
export CXXFLAGS="-UNDEBUG"
export PYSCIPOPT_DEBUG=True # With Windows CMD: set PYSCIPOPT_DEBUG=True
python -m pip install .

.. note:: Be aware that you will need the debug library of the SCIP Optimization Suite for this to work
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@
extra_link_args.append(f"-Wl,-rpath,{libdir}")

# enable debug mode if requested
if "--debug" in sys.argv:
if os.environ.get("PYSCIPOPT_DEBUG")=="True":
extra_compile_args.append("-UNDEBUG")
sys.argv.remove("--debug")

use_cython = True

Expand Down
2 changes: 1 addition & 1 deletion tests/test_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ def test_markRelaxationOnly():
assert x.isRelaxationOnly()
assert x.isDeletable()
assert not y.isRelaxationOnly()
assert not y.isDeletable()
assert not y.isDeletable()
Loading