8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f86e4c commit b3ea870Copy full SHA for b3ea870
setup.py
@@ -83,13 +83,12 @@ def build_extensions(self):
83
opts = self.c_opts.get(ct, [])
84
link_opts = self.l_opts.get(ct, [])
85
if ct == 'unix':
86
- opts.append('-DVERSION_INFO="%s"' % self.distribution.get_version())
87
opts.append(cpp_flag(self.compiler))
88
if has_flag(self.compiler, '-fvisibility=hidden'):
89
opts.append('-fvisibility=hidden')
90
- elif ct == 'msvc':
91
- opts.append('/DVERSION_INFO=\\"%s\\"' % self.distribution.get_version())
+
92
for ext in self.extensions:
+ ext.define_macros = [('VERSION_INFO', '"{}"'.format(self.distribution.get_version()))]
93
ext.extra_compile_args = opts
94
ext.extra_link_args = link_opts
95
build_ext.build_extensions(self)
0 commit comments