Skip to content

Commit 552085a

Browse files
committed
Fix formatting of VERSION_INFO definition for MSVC compiler
1 parent 27b0759 commit 552085a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python_bindings/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def build_extensions(self):
129129
if has_flag(self.compiler, '-fvisibility=hidden'):
130130
opts.append('-fvisibility=hidden')
131131
elif ct == 'msvc':
132-
opts.append('/DVERSION_INFO=\\"%s\\"' % self.distribution.get_version())
132+
opts.append('/DVERSION_INFO="%s"' % self.distribution.get_version())
133133

134134
# extend include dirs here (don't assume numpy/pybind11 are installed when first run, since
135135
# pip could have installed them as part of executing this script

0 commit comments

Comments
 (0)