diff --git a/wscript b/wscript index e75f1a1..c33d4f9 100644 --- a/wscript +++ b/wscript @@ -167,7 +167,7 @@ def configure(conf): # this causes pybindgen/version.py to be generated by setuptools_scm subprocess.Popen( [conf.env["PYTHON"][0], "setup.py", "--help-commands"], - stdout=subprocess.DEVNULL, + stdout=getattr(subprocess, "DEVNULL", None), ).wait() try: