summary refs log tree commit diff
path: root/pkgs/development/python-modules/debugpy/hardcode-version.patch
blob: 7d3fd5abfc2d49bf97b32ebdcdcadab15b2c6e27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
diff --git a/setup.py b/setup.py
index e7487100..10d36520 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,6 @@ import sys
 
 
 sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
-import versioneer  # noqa
 
 del sys.path[0]
 
@@ -141,13 +140,13 @@ if __name__ == "__main__":
     if platforms is not None:
         extras["platforms"] = platforms
 
-    cmds = versioneer.get_cmdclass()
+    cmds = {}
     override_build(cmds)
     override_build_py(cmds)
 
     setuptools.setup(
         name="debugpy",
-        version=versioneer.get_version(),
+        version="@version@",
         description="An implementation of the Debug Adapter Protocol for Python",  # noqa
         long_description=long_description,
         long_description_content_type="text/markdown",
diff --git a/src/debugpy/__init__.py b/src/debugpy/__init__.py
index baa5a7c5..53553272 100644
--- a/src/debugpy/__init__.py
+++ b/src/debugpy/__init__.py
@@ -27,7 +27,6 @@ __all__ = [
 import codecs
 import os
 
-from debugpy import _version
 from debugpy.common import compat
 
 
@@ -204,7 +203,7 @@ def trace_this_thread(should_trace):
     return api.trace_this_thread(should_trace)
 
 
-__version__ = _version.get_versions()["version"]
+__version__ = "@version@"
 
 # Force absolute path on Python 2.
 __file__ = os.path.abspath(__file__)