Skip to content

Commit 340ae3d

Browse files
committed
Switch back to using AM_PATH_PYTHON for python detection. Make the python install directory before running setup.py.
1 parent a0718de commit 340ae3d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ if test $healpix_static = yes; then
183183
healpix_python=no
184184
fi
185185
if test $healpix_python = yes; then
186-
AX_PYTHON
186+
AM_PATH_PYTHON
187187
fi
188-
if test x$PYTHON_BIN = x; then
188+
if test x$PYTHON = x; then
189189
healpix_python=no
190190
fi
191191
AC_LANG_POP([C])

src/healpy/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ setup.py : $(srcdir)/setup.py.in $(srcdir)/setup.cfg.in $(srcdir)/gen_setup.sh
2727
# Actually run the setup.py script, at "make install" time
2828

2929
install-exec-hook :
30-
@$(PYTHON_BIN) setup.py install
30+
mkdir -p "$(pythondir)"
31+
@$(PYTHON) setup.py install
3132

3233
clean-local :
3334
rm -rf build dist healpy.egg-info

0 commit comments

Comments
 (0)