Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / debugpy / hardcode-version.patch
blob2879716f704dbceb9f96d25836051b1f2e511e12
1 diff --git a/setup.py b/setup.py
2 index cfec60d..32ca206 100644
3 --- a/setup.py
4 +++ b/setup.py
5 @@ -24,7 +24,6 @@ elif "--abi" in sys.argv:
6 from setuptools import setup # noqa
8 sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
9 -import versioneer # noqa
11 del sys.path[0]
13 @@ -86,7 +85,7 @@ if __name__ == "__main__":
14 if not os.getenv("SKIP_CYTHON_BUILD"):
15 cython_build()
17 - cmds = versioneer.get_cmdclass()
18 + cmds = {}
19 cmds["bdist_wheel"] = bdist_wheel
21 extras = {}
22 @@ -96,7 +95,7 @@ if __name__ == "__main__":
24 setup(
25 name="debugpy",
26 - version=versioneer.get_version(),
27 + version="@version@",
28 description="An implementation of the Debug Adapter Protocol for Python", # noqa
29 long_description=long_description,
30 long_description_content_type="text/markdown",
31 diff --git a/src/debugpy/__init__.py b/src/debugpy/__init__.py
32 index baa5a7c..5355327 100644
33 --- a/src/debugpy/__init__.py
34 +++ b/src/debugpy/__init__.py
35 @@ -27,7 +27,6 @@ __all__ = [
36 import codecs
37 import os
39 -from debugpy import _version
40 from debugpy.common import compat
43 @@ -204,7 +203,7 @@ def trace_this_thread(should_trace):
44 return api.trace_this_thread(should_trace)
47 -__version__ = _version.get_versions()["version"]
48 +__version__ = "@version@"
50 # Force absolute path on Python 2.
51 __file__ = os.path.abspath(__file__)