View | Details | Raw Unified | Return to bug 276707
Collapse All | Expand All

(-)b/devel/py-gyp/Makefile (+1 lines)
Lines 1-5 Link Here
1
PORTNAME=	gyp
1
PORTNAME=	gyp
2
PORTVERSION=	20200512
2
PORTVERSION=	20200512
3
PORTREVISION=	1
3
CATEGORIES=	devel python
4
CATEGORIES=	devel python
4
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
5
6
(-)b/devel/py-gyp/files/patch-pylib_gyp_common.py (+23 lines)
Added Link Here
1
--- pylib/gyp/common.py.orig	2020-05-12 14:59:53 UTC
2
+++ pylib/gyp/common.py
3
@@ -12,6 +12,11 @@ import sys
4
 import tempfile
5
 import sys
6
 
7
+if sys.version_info.major == 3 and sys.version_info.minor >= 10:
8
+    from collections.abc import MutableSet
9
+    collections.MutableSet = collections.abc.MutableSet
10
+else:
11
+    from collections import MutableSet
12
 
13
 # A minimal memoizing decorator. It'll blow up if the args aren't immutable,
14
 # among other "problems".
15
@@ -494,7 +499,7 @@ def uniquer(seq, idfun=None):
16
 
17
 
18
 # Based on http://code.activestate.com/recipes/576694/.
19
-class OrderedSet(collections.MutableSet):
20
+class OrderedSet(MutableSet):
21
   def __init__(self, iterable=None):
22
     self.end = end = []
23
     end += [None, end, end]         # sentinel node for doubly linked list

Return to bug 276707