Skip to content

Commit

Permalink
fix libxml2/libxslt version parsing in setup script
Browse files Browse the repository at this point in the history
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
  • Loading branch information
hoefling committed Aug 20, 2022
1 parent 4062036 commit e2a369c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def prepare_static_build_linux(self):
url = latest_libxml2_release()
self.info('{:10}: {}'.format('libxml2', 'PYXMLSEC_LIBXML2_VERSION unset, downloading latest from {}'.format(url)))
else:
version_prefix, _ = self.libxml2_version.split('.', -1)
version_prefix, _ = self.libxml2_version.rsplit('.', 1)
url = 'https://download.gnome.org/sources/libxml2/{}/libxml2-{}.tar.xz'.format(
version_prefix, self.libxml2_version
)
Expand All @@ -305,7 +305,7 @@ def prepare_static_build_linux(self):
url = latest_libxslt_release()
self.info('{:10}: {}'.format('libxslt', 'PYXMLSEC_LIBXSLT_VERSION unset, downloading latest from {}'.format(url)))
else:
version_prefix, _ = self.libxslt_version.split('.', -1)
version_prefix, _ = self.libxslt_version.rsplit('.', 1)
url = 'https://download.gnome.org/sources/libxslt/{}/libxslt-{}.tar.xz'.format(
version_prefix, self.libxslt_version
)
Expand Down

0 comments on commit e2a369c

Please sign in to comment.