Skip to content

Commit 59732ac

Browse files
authored
Merge pull request #21820 from QuLogic/no-wheel-setuptools-scm
BLD: Drop setuptools-scm requirement in wheels
2 parents a4dbe0d + 71ad05e commit 59732ac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

setup.py

+5-3
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)