mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
databases/py-asyncpg: fix build with python 3.11
PR: 260067 Approved by: farrokhi (maintainer)
This commit is contained in:
parent
5a1f68dc4d
commit
a97113cd39
@ -14,11 +14,15 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= cpe pgsql:9.2+ python:3.6+
|
||||
CPE_VENDOR= magic
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
USE_PYTHON= autoplist concurrent cython distutils
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
PORTDOCS= PKG-INFO README.rst
|
||||
|
||||
post-extract:
|
||||
@${RM} ${WRKSRC}/asyncpg/pgproto/*.c
|
||||
@${RM} ${WRKSRC}/asyncpg/protocol/*.c
|
||||
|
||||
post-install:
|
||||
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/asyncpg/protocol/protocol*.so
|
||||
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/asyncpg/pgproto/pgproto*.so
|
||||
|
11
databases/py-asyncpg/files/patch-setup.py
Normal file
11
databases/py-asyncpg/files/patch-setup.py
Normal file
@ -0,0 +1,11 @@
|
||||
--- setup.py.orig 2021-11-16 22:38:59 UTC
|
||||
+++ setup.py
|
||||
@@ -25,7 +25,7 @@ from setuptools.command import sdist as setuptools_sdi
|
||||
from setuptools.command import build_ext as setuptools_build_ext
|
||||
|
||||
|
||||
-CYTHON_DEPENDENCY = 'Cython(>=0.29.24,<0.30.0)'
|
||||
+CYTHON_DEPENDENCY = 'Cython(>=0.29.24)'
|
||||
|
||||
# Minimal dependencies required to test asyncpg.
|
||||
TEST_DEPENDENCIES = [
|
Loading…
Reference in New Issue
Block a user