New submission from Nikita Nemkin <nik...@nemkin.ru>:

pyshellext uses MIDL to generate a header, whose only purpose is to define a 
class GUID. MIDL generation step can be replaced with a simple #define. This 
doesn't really matter for VS, but other build systems (CMake, probably Meson 
too) will benefit.

pyshellext has separate .def files for debug and release builds. One .def file 
is sufficient, because LIBRARY statement is optional.
Using __declspec(dllexport) isn't an option, because Windows headers misdeclare 
DllCanUnloadNow and DllGetClassObject...

----------
components: Windows
messages: 372032
nosy: nnemkin, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Simplify pyshellext.dll build
type: enhancement
versions: Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41070>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to