8000 Allow to use custom build_ext. See https://github.com/python-versione… · precice/python-bindings@496c78c · GitHub
[go: up one dir, main page]

Skip to content

Commit 496c78c

Browse files
Allow to use custom build_ext. See python-versioneer/python-versioneer#232
1 parent d857ee8 commit 496c78c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

versioneer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,9 @@ def run(self):
15681568
write_to_version_file(target_versionfile, versions)
15691569
cmds["build_py"] = cmd_build_py
15701570

1571-
if "setuptools" in sys.modules:
1571+
if 'build_ext' in cmds:
1572+
_build_ext = cmds['build_ext']
1573+
elif "setuptools" in sys.modules:
15721574
from setuptools.command.build_ext import build_ext as _build_ext
15731575
else:
15741576
from distutils.command.build_ext import build_ext as _build_ext

0 commit comments

Comments
 (0)
0