Skip to content

Commit 0cf5bc0

Browse files
authored
Merge pull request numpy#19936 from asmeurer/faster-in-place-imports
BUG: Make sure __version__ is defined in setup mode
2 parents 4a60e70 + 1655722 commit 0cf5bc0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

numpy/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@
134134
__all__ = ['ModuleDeprecationWarning',
135135
'VisibleDeprecationWarning']
136136

137-
# get the version using versioneer
138-
from .version import __version__, git_revision as __git_version__
139-
140137
# mapping of {name: (value, deprecation_msg)}
141138
__deprecated_attrs__ = {}
142139

@@ -403,3 +400,7 @@ def _mac_os_check():
403400
# We do this from python, since the C-module may not be reloaded and
404401
# it is tidier organized.
405402
core.multiarray._multiarray_umath._reload_guard()
403+
404+
405+
# get the version using versioneer
406+
from .version import __version__, git_revision as __git_version__

0 commit comments

Comments
 (0)