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 d65edfb commit e58c689Copy full SHA for e58c689
setup.py
@@ -11,6 +11,7 @@
11
import subprocess
12
import sys
13
import tempfile
14
+import io
15
16
import setuptools.command.sdist
17
@@ -70,7 +71,7 @@ def build_expected_version_hex(matches):
70
71
version = loc["__version__"]
72
73
# Verify that the version matches the one in C++
-with open("include/pybind11/detail/common.h") as f:
74
+with io.open("include/pybind11/detail/common.h", encoding="utf8") as f:
75
matches = dict(VERSION_REGEX.findall(f.read()))
76
cpp_version = "{MAJOR}.{MINOR}.{PATCH}".format(**matches)
77
if version != cpp_version:
0 commit comments