Skip to content

Commit 71ad05e

Browse files
committed
Drop setuptools-scm requirement in wheels
Fixes #21783.
1 parent d536acf commit 71ad05e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,11 @@ def make_release_tree(self, base_dir, files):
322322
"pyparsing>=2.2.1,<3.0.0",
323323
"python-dateutil>=2.7",
324324
] + (
325-
# Installing from a git checkout.
326-
["setuptools_scm>=4"] if Path(__file__).with_name(".git").exists()
327-
else []
325+
# Installing from a git checkout that is not producing a wheel.
326+
["setuptools_scm>=4"] if (
327+
Path(__file__).with_name(".git").exists() and
328+
os.environ.get("CIBUILDWHEEL", "0") != "1"
329+
) else []
328330
),
329331
use_scm_version={
330332
"version_scheme": "release-branch-semver",

0 commit comments

Comments
 (0)