Commit 55b797b1b78490dcf6b627d92519e2787b7a3f38

Authored by Jürgen Knödlseder
1 parent 87ec9abf

Make use of the PYTHON_BUILD_PREFIX environment variable.

This had been there before, but for some reason was removed. Now it's back again, and hopefully it's now working properly.
Showing 1 changed file with 2 additions and 2 deletions
pyext/Makefile.am
... ... @@ -69,7 +69,7 @@ all-local: build
69 69  
70 70 # Build the gammalib extension module
71 71 build: $(BUILT_SOURCES)
72   - $(PYTHON) setup.py build_ext
  72 + @PYTHON_BUILD_PREFIX@ $(PYTHON) setup.py build_ext
73 73  
74 74 # If 'make check' is invoked we build the extension modules inplace, so that
75 75 # putting the 'pyext' directory in the PYTHONPATH allows importing the gammalib
... ... @@ -77,7 +77,7 @@ build: $(BUILT_SOURCES)
77 77 # linking with libgamma, which will allow a successful 'make check' on systems
78 78 # (such as Mac OS X) that have fixed shared library paths.
79 79 check-local:
80   - $(PYTHON) setup.py build_ext --inplace
  80 + @PYTHON_BUILD_PREFIX@ $(PYTHON) setup.py build_ext --inplace
81 81  
82 82 # Install the gammalib extension module
83 83 install-exec-local:
... ...