aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyproject.toml6
1 files changed, 5 insertions, 1 deletions
diff --git a/pyproject.toml b/pyproject.toml
index f0fd8521..cfdc2574 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,9 @@
[build-system]
-requires = ["setuptools >= 40.8", "wheel"]
+requires = [
+ # avoid self install on Python 2; ref #1996
+ "setuptools >= 40.8; python_version > '3'",
+ "wheel",
+]
build-backend = "setuptools.build_meta"
backend-path = ["."]