mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
dev-python/llfuse: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST llfuse-1.4.4.tar.gz 293728 BLAKE2B aba684a0b7b06a0cdb97fb8851639ee0c6b5dc100e3d216430e26f122a78ac7933b7d5725f271328804a592b343988d6ceb79bd8c682620464dcef1d26cc20b0 SHA512 3e61f1f82194dc915947e4f0c2edf44ce0e87c4da142e39c2b19bb7db3f387a348f9c1bb02b6d0f2507b57cbfc20ad83c11ce513c685dc276d6a382e4dd449eb
|
||||
DIST llfuse-1.5.0.tar.gz 869259 BLAKE2B 2a3eee64718f4a73b8dd51ccaeedd7b1b700f734b10daa864d2ca04da5f38ed6a514c4ae8b541000c4d4a3042dcd95533ff7c1df655d7b57ec89120a97d8a9b6 SHA512 bb84c697658e7cd39eb6af3a4a6085c3bc3295e5f0b4f35adf6565ecff5077acb27ecd92f7c6420aa06dab36d9b54915bce65e4ec3d011047a0a15cdccbbb284
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
https://github.com/python-llfuse/python-llfuse/commit/8c0160545ce01b3624c8ecad669f06fb6d22d2f6
|
||||
|
||||
From 8c0160545ce01b3624c8ecad669f06fb6d22d2f6 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Waldmann <tw@waldmann-edv.de>
|
||||
Date: Sun, 21 May 2023 01:31:38 +0200
|
||||
Subject: [PATCH] remove Cython version check, fixes #81
|
||||
|
||||
distutils Version classes are deprecated.
|
||||
|
||||
I decided to remove the Cython version check completely,
|
||||
it is not as simple as checking a minimum version anyway.
|
||||
|
||||
E.g. we can work with Cython 0.29.x and also 3.0.0b2,
|
||||
but earlier 3.0.0 releases are of unknown compatibility.
|
||||
|
||||
Also, latest Python 3.12-dev versions require 0.29.34,
|
||||
while older Pythons are happy with stuff compiled by earlier
|
||||
0.29.x releases.
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -34,7 +34,6 @@
|
||||
|
||||
import setuptools
|
||||
from setuptools import Extension
|
||||
-from distutils.version import LooseVersion
|
||||
|
||||
basedir = os.path.abspath(os.path.dirname(__file__))
|
||||
sys.path.insert(0, os.path.join(basedir, 'util'))
|
||||
@@ -218,11 +217,7 @@ def run(self):
|
||||
stderr=subprocess.STDOUT)
|
||||
except OSError:
|
||||
raise SystemExit('Cython needs to be installed for this command')
|
||||
-
|
||||
- hit = re.match('^Cython version (.+)$', version)
|
||||
- if not hit or LooseVersion(hit.group(1)) < "0.29":
|
||||
- # in fact, we need a very recent Cython version to support the latest pythons
|
||||
- raise SystemExit('Need Cython 0.29 or newer, found ' + version)
|
||||
+ print(f"Using {version.strip()}.")
|
||||
|
||||
cmd = ['cython', '-Wextra', '--force', '-3', '--fast-fail',
|
||||
'--directive', 'embedsignature=True', '--include-dir',
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} pypy3 )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Python bindings for the low-level FUSE API"
|
||||
HOMEPAGE="
|
||||
https://github.com/python-llfuse/python-llfuse/
|
||||
https://pypi.org/project/llfuse/
|
||||
"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86"
|
||||
IUSE="doc examples"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-fs/fuse-2.8.0:0
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
sys-apps/attr
|
||||
"
|
||||
# <cython-3: bug #911373
|
||||
BDEPEND="
|
||||
<dev-python/cython-3[${PYTHON_USEDEP}]
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/llfuse-1.3.5-cflags.patch
|
||||
"${FILESDIR}"/llfuse-1.4.4-cython3.patch
|
||||
)
|
||||
|
||||
distutils_enable_sphinx rst
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# force regen
|
||||
rm src/llfuse.c || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if [[ ! -f src/llfuse.c ]]; then
|
||||
esetup.py build_cython
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use examples && dodoc -r examples
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
Reference in New Issue
Block a user