Skip to content

Commit

Permalink
Switch back to using AM_PATH_PYTHON for python detection. Make the py…
Browse files Browse the repository at this point in the history
…thon install directory before running setup.py.
  • Loading branch information
tskisner committed Nov 9, 2016
1 parent a0718de commit 340ae3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ if test $healpix_static = yes; then
healpix_python=no
fi
if test $healpix_python = yes; then
AX_PYTHON
AM_PATH_PYTHON
fi
if test x$PYTHON_BIN = x; then
if test x$PYTHON = x; then
healpix_python=no
fi
AC_LANG_POP([C])
Expand Down
3 changes: 2 additions & 1 deletion src/healpy/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ setup.py : $(srcdir)/setup.py.in $(srcdir)/setup.cfg.in $(srcdir)/gen_setup.sh
# Actually run the setup.py script, at "make install" time

install-exec-hook :
@$(PYTHON_BIN) setup.py install
mkdir -p "$(pythondir)"
@$(PYTHON) setup.py install

clean-local :
rm -rf build dist healpy.egg-info
Expand Down

0 comments on commit 340ae3d

Please sign in to comment.