From 0907763c83e8fd0ef6d6f00219395ded840b2565 Mon Sep 17 00:00:00 2001 From: bipin kumar Date: Fri, 19 May 2023 09:43:50 +0530 Subject: [PATCH] python-ncls: fix build for 0.0.68 release using PEP 518 --- BioArchLinux/python-ncls/PKGBUILD | 15 +++++++------- BioArchLinux/python-ncls/cython3.patch | 28 ++++++++++++-------------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/BioArchLinux/python-ncls/PKGBUILD b/BioArchLinux/python-ncls/PKGBUILD index 4a8f28d2ea..368921d764 100644 --- a/BioArchLinux/python-ncls/PKGBUILD +++ b/BioArchLinux/python-ncls/PKGBUILD @@ -1,10 +1,10 @@ -# Maintainer: bipin kumar +# Maintainer: bipin kumar pkgname=python-ncls _module=${pkgname#python-} -pkgver=0.0.67 -pkgrel=3 -pkgdesc="A wrapper for the nested containment list data structure" +pkgver=0.0.68 +pkgrel=1 +pkgdesc="A wrapper for the nested containment list data structure. http://dx.doi.org/10.1093/bioinformatics/btz615" arch=('x86_64') url="https://github.com/biocore-ntnu/ncls" license=('BSD-2') @@ -12,9 +12,10 @@ depends=( 'python' 'python-numpy' 'glibc' + 'python-setuptools' ) makedepends=( - 'python-setuptools' + 'python-setuptools-scm' 'cython' 'python-build' 'python-installer' @@ -25,9 +26,9 @@ options=(!emptydirs) source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz" "LICENSE" "cython3.patch") -sha256sums=('fa3e673d60e97bb021a516287d74bb959870cf9d910ec82403b99c443d8f447e' +sha256sums=('81aaa5abb123bb21797ed2f8ef921e20222db14a3ecbc61ccf447532f2b7ba93' '48186409eb1721726d28884f40346a8380a893e95a50bef75584e2e9c2d4fcd5' - '174a620d7dce0952e9e657ff40f25e73f0f5a9e38c96fffc91ccbc20805a7ee4') + '80fbdf0c5c2a805c953df3c359d84e63bc801d14457ad5b8a6c140250ccec7d2') prepare() { cp LICENSE "$_module-$pkgver" diff --git a/BioArchLinux/python-ncls/cython3.patch b/BioArchLinux/python-ncls/cython3.patch index cb3a00865f..cb28a18c92 100644 --- a/BioArchLinux/python-ncls/cython3.patch +++ b/BioArchLinux/python-ncls/cython3.patch @@ -1,18 +1,16 @@ ---- a/setup.py 2023-05-14 00:15:53.983680836 +0530 -+++ b/setup.py 2023-05-14 00:17:57.185420794 +0530 -@@ -63,12 +63,14 @@ - "ncls.src.fncls", ["ncls/src/fncls.pyx", "ncls/src/fintervaldb.c"], - # define_macros=macros, - include_dirs=include_dirs)] +--- a/setup.py 2023-05-19 08:59:27.619223728 +0530 ++++ b/setup.py 2023-05-19 09:03:12.750132242 +0530 +@@ -28,10 +28,12 @@ + include_dirs=include_dirs, + ), + ] +for e in extensions: + e.cython_directives = {'language_level': "3"} - # using setuptools to cythonize if cython not found - # not recommended by cython docs, but still - try: - from Cython.Build import cythonize -- ext_modules = cythonize(extensions, language_level=2) -+ ext_modules = cythonize(extensions, compiler_directives={'language_level' : "3"}) - except ImportError: - print() - print("Warning: Cannot compile with Cython. Using legacy build.") + from Cython.Build import cythonize + +-ext_modules = cythonize(extensions, language_level=2) ++ext_modules = cythonize(extensions, compiler_directives={'language_level' : "3"}) + + + setup(ext_modules=ext_modules)