diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2014-03-06 22:51:25 +0600 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2014-03-06 22:51:25 +0600 |
commit | 452aabe98bf9b25f87839481eaadea53d1b03493 (patch) | |
tree | c17d24efd6e088e1c549ae7e059d1a279a811e65 | |
parent | b74cfd1f7ab5a82b2d0bf96f750998bc66324034 (diff) | |
download | markupsafe-452aabe98bf9b25f87839481eaadea53d1b03493.tar.gz |
Silently reject old arguments
-rw-r--r-- | setup.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |