mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04: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
2 changed files with 16 additions and 1 deletions
|
@ -14,11 +14,15 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
USES= cpe pgsql:9.2+ python:3.6+
|
USES= cpe pgsql:9.2+ python:3.6+
|
||||||
CPE_VENDOR= magic
|
CPE_VENDOR= magic
|
||||||
USE_PYTHON= autoplist concurrent distutils
|
USE_PYTHON= autoplist concurrent cython distutils
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS
|
OPTIONS_DEFINE= DOCS
|
||||||
PORTDOCS= PKG-INFO README.rst
|
PORTDOCS= PKG-INFO README.rst
|
||||||
|
|
||||||
|
post-extract:
|
||||||
|
@${RM} ${WRKSRC}/asyncpg/pgproto/*.c
|
||||||
|
@${RM} ${WRKSRC}/asyncpg/protocol/*.c
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/asyncpg/protocol/protocol*.so
|
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/asyncpg/protocol/protocol*.so
|
||||||
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/asyncpg/pgproto/pgproto*.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…
Add table
Reference in a new issue