summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-01-15 12:10:14 -0700
committerGitHub <noreply@github.com>2017-01-15 12:10:14 -0700
commita5d71d64a0d2e7a50562df80349219080172f254 (patch)
treeef34982eb2c9f6166303c773a6a74cd438477e6b
parentd9c1a1f91a3983469de7086ff589a6aeaa353b3e (diff)
parent666553e6b27683d7336dafb93100041c6079a97a (diff)
downloadnumpy-a5d71d64a0d2e7a50562df80349219080172f254.tar.gz
Merge pull request #8474 from ssalonen/shebang-using-env-fixes-8472
MAINT: use env in shebang instead of absolute path to python
-rw-r--r--numpy/core/tests/test_arrayprint.py1
-rw-r--r--numpy/distutils/conv_template.py2
-rw-r--r--numpy/distutils/from_template.py2
-rw-r--r--numpy/distutils/tests/test_misc_util.py1
-rw-r--r--numpy/fft/tests/test_helper.py1
5 files changed, 2 insertions, 5 deletions
diff --git a/numpy/core/tests/test_arrayprint.py b/numpy/core/tests/test_arrayprint.py
index 6c804a3b7..9aa7b2609 100644
--- a/numpy/core/tests/test_arrayprint.py
+++ b/numpy/core/tests/test_arrayprint.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import division, absolute_import, print_function
diff --git a/numpy/distutils/conv_template.py b/numpy/distutils/conv_template.py
index ff9431798..f2ed51334 100644
--- a/numpy/distutils/conv_template.py
+++ b/numpy/distutils/conv_template.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
"""
takes templated file .xxx.src and produces .xxx file where .xxx is
.i or .c or .h, using the following template rules
diff --git a/numpy/distutils/from_template.py b/numpy/distutils/from_template.py
index ff2130297..b19c7cc0b 100644
--- a/numpy/distutils/from_template.py
+++ b/numpy/distutils/from_template.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
"""
process_file(filename)
diff --git a/numpy/distutils/tests/test_misc_util.py b/numpy/distutils/tests/test_misc_util.py
index 3e97b6fe2..f7fcbe224 100644
--- a/numpy/distutils/tests/test_misc_util.py
+++ b/numpy/distutils/tests/test_misc_util.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
from __future__ import division, absolute_import, print_function
from os.path import join, sep, dirname
diff --git a/numpy/fft/tests/test_helper.py b/numpy/fft/tests/test_helper.py
index cb85755d2..ff56ff63c 100644
--- a/numpy/fft/tests/test_helper.py
+++ b/numpy/fft/tests/test_helper.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
"""Test functions for fftpack.helper module
Copied from fftpack.helper by Pearu Peterson, October 2005