summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index af28007..210d0f4 100644
--- a/setup.py
+++ b/setup.py
@@ -318,7 +318,7 @@ class PyBuildExt(build_ext):
if update_flags:
self.update_extension_flags(ext)
- state = sysconfig.get_config_var(f"MODULE_{ext.name.upper()}")
+ state = sysconfig.get_config_var(f"MODULE_{ext.name.upper()}_STATE")
if state == "yes":
self.extensions.append(ext)
elif state == "disabled":
@@ -329,7 +329,7 @@ class PyBuildExt(build_ext):
# not available on current platform
pass
else:
- # not migrated to MODULE_{name} yet.
+ # not migrated to MODULE_{name}_STATE yet.
self.announce(
f'WARNING: Makefile is missing module variable for "{ext.name}"',
level=2