mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
python-ncls: fix build for 0.0.68 release using PEP 518
This commit is contained in:
parent
22adbf92bd
commit
0907763c83
2 changed files with 21 additions and 22 deletions
|
@ -1,10 +1,10 @@
|
||||||
# Maintainer: bipin kumar <bipin@ccmb.res.in>
|
# Maintainer: bipin kumar <kbipinkumar@pm.me>
|
||||||
|
|
||||||
pkgname=python-ncls
|
pkgname=python-ncls
|
||||||
_module=${pkgname#python-}
|
_module=${pkgname#python-}
|
||||||
pkgver=0.0.67
|
pkgver=0.0.68
|
||||||
pkgrel=3
|
pkgrel=1
|
||||||
pkgdesc="A wrapper for the nested containment list data structure"
|
pkgdesc="A wrapper for the nested containment list data structure. http://dx.doi.org/10.1093/bioinformatics/btz615"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/biocore-ntnu/ncls"
|
url="https://github.com/biocore-ntnu/ncls"
|
||||||
license=('BSD-2')
|
license=('BSD-2')
|
||||||
|
@ -12,9 +12,10 @@ depends=(
|
||||||
'python'
|
'python'
|
||||||
'python-numpy'
|
'python-numpy'
|
||||||
'glibc'
|
'glibc'
|
||||||
|
'python-setuptools'
|
||||||
)
|
)
|
||||||
makedepends=(
|
makedepends=(
|
||||||
'python-setuptools'
|
'python-setuptools-scm'
|
||||||
'cython'
|
'cython'
|
||||||
'python-build'
|
'python-build'
|
||||||
'python-installer'
|
'python-installer'
|
||||||
|
@ -25,9 +26,9 @@ options=(!emptydirs)
|
||||||
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz"
|
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz"
|
||||||
"LICENSE"
|
"LICENSE"
|
||||||
"cython3.patch")
|
"cython3.patch")
|
||||||
sha256sums=('fa3e673d60e97bb021a516287d74bb959870cf9d910ec82403b99c443d8f447e'
|
sha256sums=('81aaa5abb123bb21797ed2f8ef921e20222db14a3ecbc61ccf447532f2b7ba93'
|
||||||
'48186409eb1721726d28884f40346a8380a893e95a50bef75584e2e9c2d4fcd5'
|
'48186409eb1721726d28884f40346a8380a893e95a50bef75584e2e9c2d4fcd5'
|
||||||
'174a620d7dce0952e9e657ff40f25e73f0f5a9e38c96fffc91ccbc20805a7ee4')
|
'80fbdf0c5c2a805c953df3c359d84e63bc801d14457ad5b8a6c140250ccec7d2')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cp LICENSE "$_module-$pkgver"
|
cp LICENSE "$_module-$pkgver"
|
||||||
|
|
|
@ -1,18 +1,16 @@
|
||||||
--- a/setup.py 2023-05-14 00:15:53.983680836 +0530
|
--- a/setup.py 2023-05-19 08:59:27.619223728 +0530
|
||||||
+++ b/setup.py 2023-05-14 00:17:57.185420794 +0530
|
+++ b/setup.py 2023-05-19 09:03:12.750132242 +0530
|
||||||
@@ -63,12 +63,14 @@
|
@@ -28,10 +28,12 @@
|
||||||
"ncls.src.fncls", ["ncls/src/fncls.pyx", "ncls/src/fintervaldb.c"],
|
include_dirs=include_dirs,
|
||||||
# define_macros=macros,
|
),
|
||||||
include_dirs=include_dirs)]
|
]
|
||||||
+for e in extensions:
|
+for e in extensions:
|
||||||
+ e.cython_directives = {'language_level': "3"}
|
+ 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
|
from Cython.Build import cythonize
|
||||||
|
|
||||||
-ext_modules = cythonize(extensions, language_level=2)
|
-ext_modules = cythonize(extensions, language_level=2)
|
||||||
+ext_modules = cythonize(extensions, compiler_directives={'language_level' : "3"})
|
+ext_modules = cythonize(extensions, compiler_directives={'language_level' : "3"})
|
||||||
except ImportError:
|
|
||||||
print()
|
|
||||||
print("Warning: Cannot compile with Cython. Using legacy build.")
|
setup(ext_modules=ext_modules)
|
||||||
|
|
Loading…
Add table
Reference in a new issue