Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb2f2cb

Browse files
tacaswellmeeseeksmachine
authored andcommitted
Backport PR #21820: Drop setuptools-scm requirement in wheels
1 parent 95b1898 commit eb2f2cb

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,11 @@ def make_release_tree(self, base_dir, files):
329329
"pyparsing>=2.2.1",
330330
"python-dateutil>=2.7",
331331
] + (
332-
# Installing from a git checkout.
333-
["setuptools_scm>=4"] if Path(__file__).with_name(".git").exists()
334-
else []
332+
# Installing from a git checkout that is not producing a wheel.
333+
["setuptools_scm>=4"] if (
334+
Path(__file__).with_name(".git").exists() and
335+
os.environ.get("CIBUILDWHEEL", "0") != "1"
336+
) else []
335337
),
336338
use_scm_version={
337339
"version_scheme": "release-branch-semver",

0 commit comments

Comments
 (0)