File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -168,9 +168,7 @@ Build with Debug
168168To use debug information in PySCIPOpt you need to build it with the following command:
169169
170170.. code-block ::
171-
172- export CFLAGS="-UNDEBUG"
173- export CXXFLAGS="-UNDEBUG"
171+ export PYSCIPOPT_DEBUG=True # With Windows CMD: set PYSCIPOPT_DEBUG=True
174172 python -m pip install .
175173
176174 .. note :: Be aware that you will need the debug library of the SCIP Optimization Suite for this to work
Original file line number Diff line number Diff line change 6262 extra_link_args .append (f"-Wl,-rpath,{ libdir } " )
6363
6464# enable debug mode if requested
65- if "--debug" in sys . argv :
65+ if os . environ . get ( "PYSCIPOPT_DEBUG" ) == "True" :
6666 extra_compile_args .append ("-UNDEBUG" )
67- sys .argv .remove ("--debug" )
6867
6968use_cython = True
7069
Original file line number Diff line number Diff line change @@ -79,4 +79,4 @@ def test_markRelaxationOnly():
7979 assert x .isRelaxationOnly ()
8080 assert x .isDeletable ()
8181 assert not y .isRelaxationOnly ()
82- assert not y .isDeletable ()
82+ assert not y .isDeletable ()
You can’t perform that action at this time.
0 commit comments