Skip to content

Commit

Permalink
Support debugging b2 from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AllSeeingEyeTolledEweSew committed Dec 7, 2020
1 parent 65f5788 commit 11c82f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bindings/python/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3

import distutils.debug
import os
import pathlib
import platform
Expand Down Expand Up @@ -149,6 +150,11 @@ def build_extension_with_b2(self):

args = []

if distutils.debug.DEBUG:
args.append("--debug-configuration")
args.append("--debug-building")
args.append("--debug-generators")

variant = "debug" if self.debug else "release"
args.append(variant)
bits = 64 if sys.maxsize > 2 ** 32 else 32
Expand Down

0 comments on commit 11c82f0

Please sign in to comment.