From 5ca999fb7216bc2e02374da4724de5646f2268f7 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 11 Sep 2008 20:59:04 -0700 Subject: [PATCH] Makefile: convert check-auto-deps target into 'setup.py check_auto_deps' --- Makefile | 2 +- setup.py | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1cce5538..b740374b 100644 --- a/Makefile +++ b/Makefile @@ -118,7 +118,7 @@ signal-error-deps: exit 1 check-auto-deps: - @$(PP) $(PYTHON) -c 'import _auto_deps ; _auto_deps.require_auto_deps()' || $(MAKE) signal-error-deps + $(PYTHON) setup.py -q check_auto_deps || $(MAKE) signal-error-deps .checked-deps: $(MAKE) check-auto-deps diff --git a/setup.py b/setup.py index 7f8c8974..723252b9 100644 --- a/setup.py +++ b/setup.py @@ -238,6 +238,17 @@ class ShowPythonPath(Command): # Find a way to do this all the time. print "PYTHONPATH=%s" % os.environ["PYTHONPATH"] +class CheckAutoDeps(Command): + user_options = [] + def initialize_options(self): + pass + def finalize_options(self): + pass + def run(self): + import _auto_deps + _auto_deps.require_auto_deps() + + class BuildTahoe(Command): user_options = [] def initialize_options(self): @@ -374,6 +385,7 @@ setup(name='allmydata-tahoe', license='GNU GPL', cmdclass={"show_supportlib": ShowSupportLib, "show_pythonpath": ShowPythonPath, + "check_auto_deps": CheckAutoDeps, "build_tahoe": BuildTahoe, "trial": Trial, "sdist": MySdist, -- 2.37.2