summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2014-03-06 22:51:25 +0600
committerArmin Ronacher <armin.ronacher@active-4.com>2014-03-06 22:51:25 +0600
commit452aabe98bf9b25f87839481eaadea53d1b03493 (patch)
treec17d24efd6e088e1c549ae7e059d1a279a811e65
parentb74cfd1f7ab5a82b2d0bf96f750998bc66324034 (diff)
downloadmarkupsafe-452aabe98bf9b25f87839481eaadea53d1b03493.tar.gz
Silently reject old arguments
-rw-r--r--setup.py9
1 files changed, 9 insertions, 0 deletions
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