diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-09-07 20:18:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-07 20:18:57 -0400 |
| commit | 3b549e550cd2ece6a5c11fe0dcd73240c4dff706 (patch) | |
| tree | 6197b30d9c7e9cdab40853ba878acdd74acb0396 /setuptools | |
| parent | b254ea77cd8328ab6e9fbe84db6718bcf6b014d4 (diff) | |
| parent | 00c0ef57a1aee9cd35623936e756292a21e8d684 (diff) | |
| download | python-setuptools-git-3b549e550cd2ece6a5c11fe0dcd73240c4dff706.tar.gz | |
Merge pull request #2777 from plumdog/do-not-error-if-use-2to3-is-false
Do not error if use_2to3 is set to a false value
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/dist.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index 3363495c..8e2111a5 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -289,7 +289,10 @@ def assert_bool(dist, attr, value): raise DistutilsSetupError(tmpl.format(attr=attr, value=value)) -def invalid(dist, attr, value): +def invalid_unless_false(dist, attr, value): + if not value: + warnings.warn(f"{attr} is ignored.", DistDeprecationWarning) + return raise DistutilsSetupError(f"{attr} is invalid.") |
