Silently reject old arguments
diff --git a/setup.py b/setup.py
index fcaeb12..59ed7ee 100644
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,15 @@
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