Commit ba2a1b5892b54d1068cd9411456f0b3ac3901609
1 parent
d5cfb8d8
update for python testing
Showing
1 changed file
with
9 additions
and
1 deletions
pyext/Makefile.am
| @@ -21,7 +21,15 @@ if HAVE_SWIG | @@ -21,7 +21,15 @@ if HAVE_SWIG | ||
| 21 | CLEANFILES = ctatools_wrap.cpp ctatools.py | 21 | CLEANFILES = ctatools_wrap.cpp ctatools.py |
| 22 | endif | 22 | endif |
| 23 | 23 | ||
| 24 | -all-local: ctatools_wrap.cpp ctatools.py | 24 | +all-local: build |
| 25 | + | ||
| 26 | +# We build the python extension twice since the install step needs the result | ||
| 27 | +# in a specific directory and the test make check has no access to the name | ||
| 28 | +# of this specific directory. So we build one instance for checking, the other | ||
| 29 | +# for installation. If we could get the name built by distutils we could avoid | ||
| 30 | +# this. | ||
| 31 | +build: ctatools_wrap.cpp ctatools.py | ||
| 32 | + $(PYTHON_BUILD_PREFIX) $(PYTHON) setup.py build --build-platlib build | ||
| 25 | $(PYTHON_BUILD_PREFIX) $(PYTHON) setup.py build | 33 | $(PYTHON_BUILD_PREFIX) $(PYTHON) setup.py build |
| 26 | 34 | ||
| 27 | install-exec-local: | 35 | install-exec-local: |