This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jmoguill2
Recipients jmoguill2
Date 2020-11-12.23:06:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605222375.66.0.305564714258.issue42338@roundup.psfhosted.org>
In-reply-to
Content
Hi,
We developed a Python module that interfaces with native code via Cython.  
We currently build on Windows with Visual Studio Toolchain. 
We encounter the following issues when trying to build a debug version:
1) 3rd party modules installed via PIP are Release mode, but Visual Studio toolchain doesn't allow to mix Debug and Release libs.  To workaround this issue, we build our module in "Release" mode, with debug symbols enabled, and with compiled optimization disabled (essentially a hack). 
2) To build our module we currently use the following hack:
step 1: run python.exe setup.py build --compiler=msvc
step 2: extract the output
step 3: change /Ox to /Od (disable compiler optimization)
        add /Zi flag to compiler flags (enable debug symbols)
        add /DEBUG flag to linker flags

Please advise what is the best solution?
History
Date User Action Args
2020-11-12 23:06:15jmoguill2setrecipients: + jmoguill2
2020-11-12 23:06:15jmoguill2setmessageid: <1605222375.66.0.305564714258.issue42338@roundup.psfhosted.org>
2020-11-12 23:06:15jmoguill2linkissue42338 messages
2020-11-12 23:06:15jmoguill2create