diff options
author | ohemorange <ebportnoy@gmail.com> | 2020-06-30 02:58:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 02:58:26 +0300 |
commit | 2af297d72ff21ea996e8972f9bc4a44f16b4a876 (patch) | |
tree | d7a30a6df4ac9553fbcdd58685b7943108048013 /certbot-dns-cloudxns | |
parent | 95ef53e5d5377a79bc96cc76a3f25df744c4fbf6 (diff) |
Make each DNS plugin respect EXCLUDE_CERTBOT_DEPS (#8117)
* Don't include certbot deps when EXCLUDE_CERTBOT_DEPS is set
* import os
Diffstat (limited to 'certbot-dns-cloudxns')
-rw-r--r-- | certbot-dns-cloudxns/setup.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/certbot-dns-cloudxns/setup.py b/certbot-dns-cloudxns/setup.py index 7d3097976..82ee81756 100644 --- a/certbot-dns-cloudxns/setup.py +++ b/certbot-dns-cloudxns/setup.py @@ -1,4 +1,5 @@ from distutils.version import LooseVersion +import os import sys from setuptools import __version__ as setuptools_version @@ -11,13 +12,20 @@ version = '1.6.0.dev0' # Remember to update local-oldest-requirements.txt when changing the minimum # acme/certbot version. install_requires = [ - 'acme>=0.31.0', - 'certbot>=1.1.0', 'dns-lexicon>=2.2.1', # Support for >1 TXT record per name 'setuptools', 'zope.interface', ] +if not os.environ.get('EXCLUDE_CERTBOT_DEPS'): + install_requires.extend([ + 'acme>=0.31.0', + 'certbot>=1.1.0', + ]) +elif 'bdist_wheel' in sys.argv[1:]: + raise RuntimeError('Unset EXCLUDE_CERTBOT_DEPS when building wheels ' + 'to include certbot dependencies.') + setuptools_known_environment_markers = (LooseVersion(setuptools_version) >= LooseVersion('36.2')) if setuptools_known_environment_markers: install_requires.append('mock ; python_version < "3.3"') |