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
|
Description: Fix pyzfs version
Python does not think x.y.z~rcN is a valid version. Make it happy.
Author: Shengqi Chen <harry-chen@outlook.com>
Forwarded: not-needed
Last-Update: 2024-10-11
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/contrib/pyzfs/setup.py.in
+++ b/contrib/pyzfs/setup.py.in
@@ -18,9 +18,15 @@
srcdir = "@abs_top_srcdir@/contrib/pyzfs"
+# Python does not accept debian versioning schema
+version = "@VERSION@"
+if "~" in version:
+ main_r, pre_r = version.split("~")
+ version = main_r + "a1"
+
setup(
name="pyzfs",
- version="@VERSION@",
+ version=version,
description="Wrapper for libzfs_core",
author="ClusterHQ",
author_email="support@clusterhq.com",
|