diff --git a/setup.py b/setup.py index 08a6b033..574455f5 100755 --- a/setup.py +++ b/setup.py @@ -77,6 +77,8 @@ def build_extension(self, ext): env = os.environ.copy() env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format(env.get('CXXFLAGS', ''), self.distribution.get_version()) + if cfg == 'Debug': + env['CXXFLAGS'] += "-DDEBUG" if not os.path.exists(self.build_temp): os.makedirs(self.build_temp)