We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97d0858 + 2b1558a commit 7b68883Copy full SHA for 7b68883
setup.py
@@ -163,8 +163,12 @@ def write_version_py(filename='Orange/version.py'):
163
GIT_REVISION = git_version()
164
elif os.path.exists('Orange/version.py'):
165
# must be a source distribution, use existing version file
166
- import imp
167
- version = imp.load_source("Orange.version", "Orange/version.py")
+ import importlib.util
+ spec = importlib.util.spec_from_file_location(
168
+ "Orange.version", filename
169
+ )
170
+ version = importlib.util.module_from_spec(spec)
171
+ spec.loader.exec_module(version)
172
GIT_REVISION = version.git_revision
173
else:
174
GIT_REVISION = "Unknown"
0 commit comments