default: build
+.PHONY: build
+build:
+ python setup.py build
+# where does this go? in a platform-specific directory under build/ . Use
+# builddir.py to locate it.
+
+ifneq ($(PYTHONPATH),)
+PP=PYTHONPATH=${PYTHONPATH}:$(shell python ./builddir.py -a)
+else
+PP=PYTHONPATH=$(shell python ./builddir.py -a)
+endif
+
.PHONY: run-queen run-client test
run-queen:
cd queen-basedir && PYTHONPATH=.. twistd -noy ../queen.tac
-run-client:
- cd client-basedir && PYTHONPATH=.. twistd -noy ../client.tac
+run-client: build
+ cd client-basedir && $(PP) twistd -noy ../client.tac
run-client2:
cd client-basedir2 && PYTHONPATH=.. twistd -noy ../client.tac
run-client3:
cd client-basedir3 && PYTHONPATH=.. twistd -noy ../client.tac
-.PHONY: build
-build:
- python setup.py build
-# where does this go? in a platform-specific directory under build/ . Use
-# builddir.py to locate it.
-
-ifneq ($(PYTHONPATH),)
-PP=PYTHONPATH=${PYTHONPATH}:$(shell python ./builddir.py)
-else
-PP=PYTHONPATH=$(shell python ./builddir.py)
-endif
TEST=allmydata
REPORTER=
# libdir. If we were using a pure-python module, this would just be "lib".
plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3])
libdir = os.path.join("build", "lib" + plat_specifier)
+if len(sys.argv) > 1 and sys.argv[1] == "-a":
+ libdir = os.path.abspath(libdir)
print libdir