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 b6d1cd6 commit 22a3c2dCopy full SHA for 22a3c2d
setup.py
@@ -78,11 +78,13 @@ class BuildExt(build_ext):
78
def build_extensions(self):
79
ct = self.compiler.compiler_type
80
opts = self.c_opts.get(ct, [])
81
- opts.append('-DVERSION_INFO="%s"' % self.distribution.get_version())
82
if ct == 'unix':
+ opts.append('-DVERSION_INFO="%s"' % self.distribution.get_version())
83
opts.append(cpp_flag(self.compiler))
84
if has_flag(self.compiler, '-fvisibility=hidden'):
85
opts.append('-fvisibility=hidden')
86
+ elif ct == 'msvc':
87
+ opts.append('/DVERSION_INFO=\\"%s\\"' % self.distribution.get_version())
88
for ext in self.extensions:
89
ext.extra_compile_args = opts
90
build_ext.build_extensions(self)
0 commit comments