Skip to content

Commit 533399d

Browse files
zippy2Daniel P. Berrangé
authored and
Daniel P. Berrangé
committed
setup.py: s/PY_VERSION/VERSION/
When generating spec file, @PY_VERSION@ is replaced with the current version of libvirt-python. Well, it's not as obvious as it could be: usually it's just @Version@. Worse, the PY_ prefix may mislead readers into thinking it refers to python version. Just drop the PY_ prefix. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
1 parent dfafe46 commit 533399d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libvirt-python.spec.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
Summary: The libvirt virtualization API python3 binding
1616
Name: libvirt-python
17-
Version: @PY_VERSION@
17+
Version: @VERSION@
1818
Release: 1%{?dist}
1919
Source0: https://libvirt.org/sources/python/%{name}-%{version}.tar.gz
2020
Url: https://libvirt.org

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def _gen_from_in(file_in, file_out, replace_pattern, replace):
196196
def gen_rpm_spec(self):
197197
return self._gen_from_in("libvirt-python.spec.in",
198198
"libvirt-python.spec",
199-
"@PY_VERSION@",
199+
"@VERSION@",
200200
getVersion())
201201

202202
def gen_authors(self):

0 commit comments

Comments
 (0)