We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b7e78e4 + 80e0c97 commit 68ed63bCopy full SHA for 68ed63b
1 file changed
setup.py
@@ -28,7 +28,7 @@
28
# - git commit -a -m "post-release"
29
# - git push
30
31
-from imp import load_source
+import importlib.util
32
from os import path
33
try:
34
# setuptools supports bdist_wheel
@@ -55,7 +55,10 @@
55
with open('README.rst') as fp:
56
LONG_DESCRIPTION = fp.read()
57
58
-ptrace = load_source("version", path.join("ptrace", "version.py"))
+ptrace_spec = importlib.util.spec_from_file_location("version", path.join("ptrace", "version.py"))
59
+ptrace = importlib.util.module_from_spec(ptrace_spec)
60
+ptrace_spec.loader.exec_module(ptrace)
61
+
62
PACKAGES = {}
63
for name in MODULES:
64
PACKAGES[name] = name.replace(".", "/")
0 commit comments