(In reply to Martin Li��ka from comment #5) > It's simple, they have a configure option: > > %if %{with debug_build} > BuildPython debug \ > "--without-ensurepip --with-pydebug" \ > "-O0" > %endif # with debug_build No, it is not simple. We don't have multiple builds in separate subdirectories, we don't have BuildPython macro. If you want this functionality, complete patch with suggested changes (tested to work) would be welcome. We are now in the process of upgrading to 3.7.0 so this is the time for radical changes.