Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow specifying python command in makefile

  • Loading branch information...
commit bccaf02cf2963d0f00e2ac49bc9af927cd19cc6c 1 parent e90b6be
@dougalsutherland dougalsutherland authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 Makefile
View
14 Makefile
@@ -1,5 +1,7 @@
# Bottleneck Makefile
+PYTHON=python
+
srcdir := bottleneck/src
help:
@@ -17,7 +19,7 @@ help:
all: clean pyx cfiles build test
pyx:
- python -c "from bottleneck.src.makepyx import makepyx; makepyx()"
+ ${PYTHON} -c "from bottleneck.src.makepyx import makepyx; makepyx()"
cfiles:
cython ${srcdir}/func/32bit/func.pyx
@@ -29,23 +31,23 @@ build: funcs moves
funcs:
rm -rf ${srcdir}/../func.so
- python ${srcdir}/func/setup.py build_ext --inplace
+ ${PYTHON} ${srcdir}/func/setup.py build_ext --inplace
moves:
rm -rf ${srcdir}/../move.so
- python ${srcdir}/move/setup.py build_ext --inplace
+ ${PYTHON} ${srcdir}/move/setup.py build_ext --inplace
test:
- python -c "import bottleneck;bottleneck.test(extra_argv=['--processes=4'])"
+ ${PYTHON} -c "import bottleneck;bottleneck.test(extra_argv=['--processes=4'])"
bench:
- python -c "import bottleneck; bottleneck.bench()"
+ ${PYTHON} -c "import bottleneck; bottleneck.bench()"
sdist: pyx cfiles
rm -f MANIFEST
git status
find -name *.c
- python setup.py sdist
+ ${PYTHON} setup.py sdist
# Phony targets for cleanup and similar uses
Please sign in to comment.
Something went wrong with that request. Please try again.