8000 Merge pull request #21832 from meeseeksmachine/auto-backport-of-pr-21… · matplotlib/matplotlib@c65392d · GitHub
[go: up one dir, main page]

Skip to content

Commit c65392d

Browse files
authored
Merge pull request #21832 from meeseeksmachine/auto-backport-of-pr-21820-on-v3.5.x
Backport PR #21820 on branch v3.5.x (Drop setuptools-scm requirement in wheels)
2 parents 95b1898 + eb2f2cb commit c65392d

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
@@ -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)
0