Skip to content

Commit a73ba08

Browse files
author
Ben Rowland
committed
fix: build test_setuptools_abi out of source tree
WHen setuptools-scm is installed, building this package in the source tree with Python 3.8 on Ubuntu breaks.
1 parent 32b192b commit a73ba08

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_setuptools_abi3.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525
def test_abi3_wheel(tmp_path, monkeypatch, virtualenv):
2626
dist = tmp_path / "dist"
2727
dist.mkdir()
28-
monkeypatch.chdir(ABI_PKG)
28+
29+
# create a temporary copy of the package source so we don't contaminate the
30+
# main source tree with build artefacts
31+
src = tmp_path / "src"
32+
shutil.copytree(ABI_PKG, src)
33+
monkeypatch.chdir(src)
2934
if Path("dist").is_dir():
3035
shutil.rmtree("dist")
3136

0 commit comments

Comments
 (0)