generate pybindgen/version.py in waf configure, closes #45

This commit is contained in:
Gustavo Carneiro committed 2021-04-05 15:14:13 +01:00
1 parent 71852b1158
commit 42df0fcb4b
1 file changed
+4
+4
View File
@@ -164,6 +164,10 @@ def configure(conf):
conf.load('python')
conf.check_python_version((2,3))
# this causes pybindgen/version.py to be generated by setuptools_scm
subprocess.run([conf.env["PYTHON"][0], "setup.py", "--help-commands"],
stdout=subprocess.DEVNULL)
try:
conf.load('compiler_c')
conf.load('compiler_cxx')