From 452aabe98bf9b25f87839481eaadea53d1b03493 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 6 Mar 2014 22:51:25 +0600 Subject: Silently reject old arguments --- setup.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup.py b/setup.py index fcaeb12..59ed7ee 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,15 @@ is_jython = 'java' in sys.platform is_pypy = hasattr(sys, 'pypy_version_info') +# Remove old arguments that were once supported. Thanks setuptools +# 3.0 for just randomly removing functionality. +for arg in '--with-speedups', '--without-speedups': + try: + sys.argv.remove(arg) + except ValueError: + pass + + ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError) if sys.platform == 'win32' and sys.version_info > (2, 6): # 2.6's distutils.msvc9compiler can raise an IOError when failing to -- cgit v1.2.1