summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorha shao <mozbugbox@yahoo.com.au>2017-07-29 20:41:46 +0800
committerha shao <mozbugbox@yahoo.com.au>2017-07-29 20:41:46 +0800
commit0c5958bdf6fb1dcd71a5d9a0dc491d4cddafd6bf (patch)
tree7308b6ca35162b13fc768641e7ccfb574f97b8b3 /Makefile
parenta88e091a8b6c4daa86db89f29b19c0ffd7aa9e74 (diff)
downloadpython-lxml-0c5958bdf6fb1dcd71a5d9a0dc491d4cddafd6bf.tar.gz
Avoid compile against python2 when `make test3`
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index dce52d96..61795ff9 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ MANYLINUX_LIBXSLT_VERSION=1.1.29
MANYLINUX_IMAGE_X86_64=quay.io/pypa/manylinux1_x86_64
MANYLINUX_IMAGE_686=quay.io/pypa/manylinux1_i686
-.PHONY: all inplace rebuild-sdist sdist build require-cython wheel_manylinux wheel
+.PHONY: all inplace inplace3 rebuild-sdist sdist build require-cython wheel_manylinux wheel
all: inplace
@@ -23,6 +23,9 @@ all: inplace
inplace:
$(PYTHON) setup.py $(SETUPFLAGS) build_ext -i $(PYTHON_WITH_CYTHON) --warnings --with-coverage
+inplace3:
+ $(PYTHON3) setup.py $(SETUPFLAGS) build_ext -i $(PY3_WITH_CYTHON) --warnings --with-coverage
+
rebuild-sdist: require-cython
rm -f dist/lxml-$(LXMLVERSION).tar.gz
find src -name '*.c' -exec rm -f {} \;
@@ -64,8 +67,7 @@ test_build: build
test_inplace: inplace
$(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS) $(CYTHON_WITH_COVERAGE)
-test_inplace3: inplace
- $(PYTHON3) setup.py $(SETUPFLAGS) build_ext -i $(PY3_WITH_CYTHON)
+test_inplace3: inplace3
$(PYTHON3) test.py $(TESTFLAGS) $(TESTOPTS) $(CYTHON3_WITH_COVERAGE)
valgrind_test_inplace: inplace