From c9861f9bd496089faf29f2e0022727fcc17e413b Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Sun, 13 Jul 2014 04:17:20 +0200 Subject: Simplify dummy commands (fix inheritance, remove finalize_options()) --- setup.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 94a18ea8..3dd2bd6e 100644 --- a/setup.py +++ b/setup.py @@ -224,44 +224,35 @@ setup_requires_error = ("Requested setup command that needs 'setup_requires' " "free command or option.") -class DummyCFFIBuild(CFFIBuild): +class DummyCFFIBuild(build): """ This class makes it very obvious when ``keywords_with_side_effects()`` has incorrectly interpreted the command line arguments to ``setup.py build`` as one of the 'side effect free' commands or options. """ - def finalize_options(self): - build.finalize_options(self) - def run(self): raise RuntimeError(setup_requires_error) -class DummyCFFIInstall(CFFIInstall): +class DummyCFFIInstall(install): """ This class makes it very obvious when ``keywords_with_side_effects()`` has incorrectly interpreted the command line arguments to ``setup.py install`` as one of the 'side effect free' commands or options. """ - def finalize_options(self): - install.finalize_options(self) - def run(self): raise RuntimeError(setup_requires_error) -class DummyPyTest(PyTest): +class DummyPyTest(test): """ This class makes it very obvious when ``keywords_with_side_effects()`` has incorrectly interpreted the command line arguments to ``setup.py test`` as one of the 'side effect free' commands or options. """ - def finalize_options(self): - test.finalize_options(self) - def run_tests(self): raise RuntimeError(setup_requires_error) -- cgit v1.2.3