diff --git a/python/setup.py b/python/setup.py index 88119e2d2aa..504c78d61bb 100755 --- a/python/setup.py +++ b/python/setup.py @@ -44,7 +44,7 @@ # as here it may be set to the host not target platform is_emscripten = ( sysconfig.get_config_var("SOABI") - and sysconfig.get_config_var("SOABI").find("emscripten") != -1 + and sysconfig.get_config_var("SOABI").find("emscripten") != -1 # type: ignore[possibly-unbound] ) @@ -254,7 +254,7 @@ def _run_cmake(self): if os.path.isfile('CMakeCache.txt'): cachefile = open('CMakeCache.txt', 'r') cachedir = re.search('CMAKE_CACHEFILE_DIR:INTERNAL=(.*)', - cachefile.read()).group(1) + cachefile.read()).group(1) # type: ignore[possibly-unbound-attribute] cachefile.close() if (cachedir != build_temp): build_base = pjoin(saved_cwd, build_cmd.build_base)