Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
python-cangjie
python312.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python312.patch of Package python-cangjie
From 3f641f2011f094910f76dd981897a07bb700fb29 Mon Sep 17 00:00:00 2001 From: Sandro <devel@penguinpee.nl> Date: Thu, 20 Jul 2023 01:22:15 +0200 Subject: [PATCH] Replace use of `distutils` Python3.12 removed `distutils`. Use `packaging.version.Version` instead. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: cangjie-1.3/configure.ac =================================================================== --- cangjie-1.3.orig/configure.ac +++ cangjie-1.3/configure.ac @@ -38,7 +38,8 @@ CYTHON_MIN_VERSION=0.14 AC_MSG_CHECKING(for cython version) CYTHON_VERSION=`$CYTHON --version 2>&1 | cut -d" " -f3` AC_MSG_RESULT($CYTHON_VERSION) -$PYTHON -c "from distutils.version import StrictVersion as ver; import sys; sys.exit(0 if ver(\"$CYTHON_VERSION\") >= ver(\"$CYTHON_MIN_VERSION\") else 1)" +# Version is strict. See: https://github.com/pypa/packaging/issues/520#issuecomment-1067119795 +$PYTHON -c "from packaging.version import Version as ver; import sys; sys.exit(0 if ver(\"$CYTHON_VERSION\") >= ver(\"$CYTHON_MIN_VERSION\") else 1)" AS_IF([test $? = 1], [AC_MSG_ERROR([Please use cython >= $CYTHON_MIN_VERSION])]) AC_SUBST(CYTHON)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor