From 71ad05e512d4fa4fca3c39c9caee66248d9b28d8 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 30 Nov 2021 17:34:46 -0500 Subject: [PATCH] Drop setuptools-scm requirement in wheels Fixes #21783. --- setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 401f4554529b..4282195dbad5 100644 --- a/setup.py +++ b/setup.py @@ -322,9 +322,11 @@ def make_release_tree(self, base_dir, files): "pyparsing>=2.2.1,<3.0.0", "python-dateutil>=2.7", ] + ( - # Installing from a git checkout. - ["setuptools_scm>=4"] if Path(__file__).with_name(".git").exists() - else [] + # Installing from a git checkout that is not producing a wheel. + ["setuptools_scm>=4"] if ( + Path(__file__).with_name(".git").exists() and + os.environ.get("CIBUILDWHEEL", "0") != "1" + ) else [] ), use_scm_version={ "version_scheme": "release-branch-semver",