Skip to content

Commit 3c8ce93

Browse files
committed
Change activation of debug mode
1 parent bbd7e5d commit 3c8ce93

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/build.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ To use debug information in PySCIPOpt you need to build it with the following co
160160

161161
.. code-block::
162162
163-
python -m pip install --install-option="--debug" .
163+
export PYSCIPOPT_DEBUG=True
164+
python -m pip install .
164165
165166
.. note:: Be aware that you will need the debug library of the SCIP Optimization Suite for this to work
166167
(cmake .. -DCMAKE_BUILD_TYPE=Debug).

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@
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

6968
use_cython = True
7069

0 commit comments

Comments
 (0)