From 7d1ced2aa0e2322f524f63b525689130a60c7670 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Thu, 16 May 2019 00:09:02 +0200 Subject: [PATCH] Ensure we are not building wheels using an old version of setuptools --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index ea63d1094..6dcb90c8e 100644 --- a/setup.py +++ b/setup.py @@ -60,6 +60,9 @@ install_requires = [ # in order to allow these systems to build certbot from sources. if StrictVersion(setuptools_version) >= StrictVersion('36.2'): install_requires.append('pywin32 ; sys_platform == \'win32\'') +elif 'bdist_wheel' in sys.argv[1:]: + raise RuntimeError('Error, you are trying to build certbot wheels using an old version ' + 'of setuptools. Version 36.2+ of setuptools is required.') dev_extras = [ 'astroid==1.6.5',