Skip to content

Commit

Permalink
py-frozendict: disable C extension another way
Browse files Browse the repository at this point in the history
hopefully fixes build with py-cython installed
  • Loading branch information
wiz committed Jun 11, 2023
1 parent 0589aa0 commit 471f01a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
5 changes: 1 addition & 4 deletions devel/py-frozendict/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2023/05/08 07:02:43 adam Exp $
# $NetBSD: Makefile,v 1.19 2023/06/11 15:13:47 wiz Exp $

DISTNAME= frozendict-2.3.8
PKGREVISION= 1
Expand All @@ -15,9 +15,6 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test

USE_LANGUAGES= # none

# XXX: do not build c-extension; remove when Python 3.11 gets supported
MAKE_ENV+= CIBUILDWHEEL=0

PYTHON_VERSIONS_INCOMPATIBLE= 27

TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
Expand Down
3 changes: 2 additions & 1 deletion devel/py-frozendict/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.13 2023/04/30 04:50:27 adam Exp $
$NetBSD: distinfo,v 1.14 2023/06/11 15:13:47 wiz Exp $

BLAKE2s (frozendict-2.3.8.tar.gz) = 030462ae54946174c1cbaae8d579528cd7aa535457d76e096f5beed75a268317
SHA512 (frozendict-2.3.8.tar.gz) = e0607e695bd7b70b32bdd939b394e6efad604948d1c0b14d3d5ae074c3d9e7a602f32c71c2ce66fb27a99bdd7fb3bf14998df9bea8a42ee7c11192cfe81380f3
Size (frozendict-2.3.8.tar.gz) = 312109 bytes
SHA1 (patch-setup.py) = 6c85ddd9dd392b68bb1c5a909e41e623e5911601
14 changes: 14 additions & 0 deletions devel/py-frozendict/patches/patch-setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
$NetBSD: patch-setup.py,v 1.1 2023/06/11 15:13:47 wiz Exp $

Do not build c-extension; remove when Python 3.11 gets supported.

--- setup.py.orig 2023-04-29 20:10:14.000000000 +0000
+++ setup.py
@@ -203,6 +203,7 @@ if custom_arg == None:
elif custom_arg in custom_args_c:
optional = False

+custom_arg = "py"
if custom_arg in custom_args_py:
setuptools.setup(**common_setup_args)
elif custom_arg in custom_args_c:

0 comments on commit 471f01a

Please sign in to comment.