summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-09-11 10:40:44 -0500
committerGitHub <noreply@github.com>2018-09-11 10:40:44 -0500
commitccaccbcb5d6a5fcbbd60366cb59edd022a8d0c21 (patch)
tree863c53f43d8d60b208bfd555883e8d852407c01e /numpy/distutils
parentb1187f667a2bb5d7a0c519192440a5116a948180 (diff)
parent5e3412dfc139b733b136c2c3b508eb7bf7b8ec10 (diff)
downloadnumpy-ccaccbcb5d6a5fcbbd60366cb59edd022a8d0c21.tar.gz
Merge pull request #11909 from mattip/flake8-cleanups
MAINT: flake8 cleanups
Diffstat (limited to 'numpy/distutils')
-rw-r--r--numpy/distutils/command/config.py1
-rw-r--r--numpy/distutils/npy_pkg_config.py1
2 files changed, 0 insertions, 2 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py
index 47bc496cf..74a05e6a8 100644
--- a/numpy/distutils/command/config.py
+++ b/numpy/distutils/command/config.py
@@ -436,7 +436,6 @@ int main (void)
"involving running executable on the target machine.\n" \
"+++++++++++++++++++++++++++++++++++++++++++++++++\n",
DeprecationWarning, stacklevel=2)
- from distutils.ccompiler import CompileError, LinkError
self._check_compiler()
exitcode, output = 255, ''
try:
diff --git a/numpy/distutils/npy_pkg_config.py b/numpy/distutils/npy_pkg_config.py
index 6fe517659..9df7c0031 100644
--- a/numpy/distutils/npy_pkg_config.py
+++ b/numpy/distutils/npy_pkg_config.py
@@ -414,7 +414,6 @@ if __name__ == '__main__':
print("%s\t%s - %s" % (info.name, info.name, info.description))
pkg_name = args[1]
- import os
d = os.environ.get('NPY_PKG_CONFIG_PATH')
if d:
info = read_config(pkg_name, ['numpy/core/lib/npy-pkg-config', '.', d])