Skip to content

Commit e2a369c

Browse files
committed
fix libxml2/libxslt version parsing in setup script
Signed-off-by: oleg.hoefling <[email protected]>
1 parent 4062036 commit e2a369c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def prepare_static_build_linux(self):
285285
url = latest_libxml2_release()
286286
self.info('{:10}: {}'.format('libxml2', 'PYXMLSEC_LIBXML2_VERSION unset, downloading latest from {}'.format(url)))
287287
else:
288-
version_prefix, _ = self.libxml2_version.split('.', -1)
288+
version_prefix, _ = self.libxml2_version.rsplit('.', 1)
289289
url = 'https://download.gnome.org/sources/libxml2/{}/libxml2-{}.tar.xz'.format(
290290
version_prefix, self.libxml2_version
291291
)
@@ -305,7 +305,7 @@ def prepare_static_build_linux(self):
305305
url = latest_libxslt_release()
306306
self.info('{:10}: {}'.format('libxslt', 'PYXMLSEC_LIBXSLT_VERSION unset, downloading latest from {}'.format(url)))
307307
else:
308-
version_prefix, _ = self.libxslt_version.split('.', -1)
308+
version_prefix, _ = self.libxslt_version.rsplit('.', 1)
309309
url = 'https://download.gnome.org/sources/libxslt/{}/libxslt-{}.tar.xz'.format(
310310
version_prefix, self.libxslt_version
311311
)

0 commit comments

Comments
 (0)