summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-09-23 16:02:35 -0600
committerGitHub <noreply@github.com>2021-09-23 16:02:35 -0600
commit0cf5bc092f801a4c004ecdb7d1061f46aaab4ff4 (patch)
tree98a3bcadfae5ec56ceb280f78413a2b67dc6a990 /numpy
parent4a60e7099ec6c69b5ceeaecb5c71836d39662c31 (diff)
parent1655722ac9cabcf419ffec8965e0e8f40f6419b0 (diff)
downloadnumpy-0cf5bc092f801a4c004ecdb7d1061f46aaab4ff4.tar.gz
Merge pull request #19936 from asmeurer/faster-in-place-imports
BUG: Make sure __version__ is defined in setup mode
Diffstat (limited to 'numpy')
-rw-r--r--numpy/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py
index ebb124738..58adeaeab 100644
--- a/numpy/__init__.py
+++ b/numpy/__init__.py
@@ -134,9 +134,6 @@ else:
__all__ = ['ModuleDeprecationWarning',
'VisibleDeprecationWarning']
- # get the version using versioneer
- from .version import __version__, git_revision as __git_version__
-
# mapping of {name: (value, deprecation_msg)}
__deprecated_attrs__ = {}
@@ -403,3 +400,7 @@ else:
# We do this from python, since the C-module may not be reloaded and
# it is tidier organized.
core.multiarray._multiarray_umath._reload_guard()
+
+
+# get the version using versioneer
+from .version import __version__, git_revision as __git_version__