Skip to content

Commit ad68e76

Browse files
WillAydmroeschke
authored andcommitted
DOC: Add note about using conda to generate debug builds (pandas-dev#54860)
* DOC: Add note about using conda to generate debug builds * typo
1 parent 7d97399 commit ad68e76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/source/development/debugging_extensions.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ By default building pandas from source will generate a release build. To generat
2121

2222
pip install -ve . --no-build-isolation --config-settings=builddir="debug" --config-settings=setup-args="-Dbuildtype=debug"
2323

24+
.. note::
25+
26+
conda environements update CFLAGS/CPPFLAGS with flags that are geared towards generating releases. If using conda, you may need to set ``CFLAGS="$CFLAGS -O0"`` and ``CPPFLAGS="$CPPFLAGS -O0"`` to ensure optimizations are turned off for debugging
27+
2428
By specifying ``builddir="debug"`` all of the targets will be built and placed in the debug directory relative to the project root. This helps to keep your debug and release artifacts separate; you are of course able to choose a different directory name or omit altogether if you do not care to separate build types.
2529

2630
Editor support

0 commit comments

Comments
 (0)