summaryrefslogtreecommitdiff
path: root/numpy/core/setup_common.py
diff options
context:
space:
mode:
authorSeth Troisi <sethtroisi@google.com>2019-07-18 16:13:54 -0700
committerSeth Troisi <sethtroisi@google.com>2019-07-18 16:13:54 -0700
commit8727cae494004e621fd099f32b601e4498721e69 (patch)
tree601172a82c0e0f046b6eb2369c3871373021f544 /numpy/core/setup_common.py
parentf751336b0261fb86b15f949251f31314e08ecc00 (diff)
downloadnumpy-8727cae494004e621fd099f32b601e4498721e69.tar.gz
DOC: Update cversions.py links and wording
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r--numpy/core/setup_common.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
index bf6abcf02..31b3ced8d 100644
--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -14,7 +14,7 @@ from numpy.distutils.misc_util import mingw32
#-------------------
# How to change C_API_VERSION ?
# - increase C_API_VERSION value
-# - record the hash for the new C API with the script cversions.py
+# - record the hash for the new C API with the cversions.py script
# and add the hash to cversions.txt
# The hash values are used to remind developers when the C API number was not
# updated - generates a MismatchCAPIWarning warning which is turned into an
@@ -88,14 +88,13 @@ def check_api_version(apiversion, codegen_dir):
# codegen_dir have been updated without the API version being
# updated. Any modification in those .txt files should be reflected
# in the api and eventually abi versions.
- # To compute the checksum of the current API, use
- # code_generators/cversions.py script
+ # To compute the checksum of the current API, use numpy/core/cversions.py
if not curapi_hash == api_hash:
msg = ("API mismatch detected, the C API version "
"numbers have to be updated. Current C api version is %d, "
- "with checksum %s, but recorded checksum for C API version %d in "
- "codegen_dir/cversions.txt is %s. If functions were added in the "
- "C API, you have to update C_API_VERSION in %s."
+ "with checksum %s, but recorded checksum for C API version %d "
+ "in core/codegen_dir/cversions.txt is %s. If functions were "
+ "added in the C API, you have to update C_API_VERSION in %s."
)
warnings.warn(msg % (apiversion, curapi_hash, apiversion, api_hash,
__file__),