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
|
From: Manuel Guerra <ar.manuelguerra@gmail.com>
Date: Thu, 18 Sep 2025 16:33:46 -0700
Subject: Change auto version before build to use Debian version
During Debian packaging, this call to `__version("py_ecc")` fails
because the package metadata is not available in the build environment.
Replace this instead with `@DEB_VERSION@` which will at build time be
replaced with the Debian version by debian/rules.
Forwarded: not-needed
---
py_ecc/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/py_ecc/__init__.py b/py_ecc/__init__.py
index 77af6ed..3100f0b 100644
--- a/py_ecc/__init__.py
+++ b/py_ecc/__init__.py
@@ -12,7 +12,7 @@ from typing import (
_sys.setrecursionlimit(max(100000, _sys.getrecursionlimit()))
-__version__ = __version("py_ecc")
+__version__ = "@DEB_VERSION@" # Replaced by debian/rules during build
_lazy_imports = {
"bls": "py_ecc.bls",
|