summaryrefslogtreecommitdiff
path: root/numpy/core/setup_common.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-07-05 13:19:43 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-07-05 17:29:25 -0600
commit7fa8ab6ac29c1dccf34dae5c53211ace67620ed7 (patch)
tree29c6f65a680e9bb21bda2624ba1e38ace5d48525 /numpy/core/setup_common.py
parent8b3e9ae5262c1da1118370cd6e83db9b2166952e (diff)
downloadnumpy-7fa8ab6ac29c1dccf34dae5c53211ace67620ed7.tar.gz
MAINT: Fix some pyflakes warnings in numpy/core/*.py
These fixes are not agressive as some of the code is complicated and it is better to be careful. The files numeric.py and numerictypes.py are not easily analysed and the latter is self modifying. Pyflakes generates a number of invalid warnings for those files.
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r--numpy/core/setup_common.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
index c7bb8688c..c923b6d91 100644
--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -2,12 +2,10 @@ from __future__ import division, absolute_import, print_function
# Code common to build tools
import sys
-from os.path import join
import warnings
import copy
import binascii
-from distutils.ccompiler import CompileError
#-------------------
# Versioning support
@@ -54,11 +52,13 @@ def is_released(config):
return True
def get_api_versions(apiversion, codegen_dir):
- """Return current C API checksum and the recorded checksum for the given
- version of the C API version."""
- api_files = [join(codegen_dir, 'numpy_api_order.txt'),
- join(codegen_dir, 'ufunc_api_order.txt')]
+ """
+ Return current C API checksum and the recorded checksum.
+
+ Return current C API checksum and the recorded checksum for the given
+ version of the C API version.
+ """
# Compute the hash of the current API as defined in the .txt files in
# code_generators
sys.path.insert(0, codegen_dir)