Skip to content

Commit 9d344a9

Browse files
author
Pan
committed
fixup! Add bdist_ext functionality to versioneer. Resolves #17
1 parent 1cd2f2a commit 9d344a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

versioneer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,12 @@ def run(self):
15701570
cfg = get_config_from_root(root)
15711571
versions = get_versions()
15721572
_build_ext.run(self)
1573+
if self.inplace:
1574+
# build_ext --inplace will only build modules in
1575+
# build/lib<..> dir with no _version.py to write to.
1576+
# As in place builds will already have a _version.py
1577+
# in the module dir, we do not need to write one.
1578+
return
15731579
# now locate _version.py in the new build/ directory and replace
15741580
# it with an updated value
15751581
target_versionfile = os.path.join(self.build_lib,

0 commit comments

Comments
 (0)