From afb87bb10a0858daeb1a4d0d3b5078599aaed7c1 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 2 Jan 2011 02:37:36 +0100 Subject: [PATCH] Fixed "building" of purelib files with make. Using build instead of build_py forced build_ext to run too, which may fail to run as the option PG_CONFIG is not passed (or, worse, we may end up building against the wrong pg_config). Also touching the target file as make seems considering the source file newer than the destination when the timestamp is the same (as it is because the file is usually just copied). --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ffc7cc58..47cfd159 100644 --- a/Makefile +++ b/Makefile @@ -104,7 +104,8 @@ $(PLATLIB): $(SOURCE_C) $(PYTHON) setup.py build_ext $(BUILD_EXT_OPT) $(PACKAGE)/%.py: lib/%.py - $(PYTHON) setup.py build $(BUILD_OPT) + $(PYTHON) setup.py build_py $(BUILD_OPT) + touch $@ $(SDIST): docs MANIFEST $(SOURCE)