blob: fa1c810edc95959ac7f6ca2ed3e5ff7a119ddf5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-setup.py,v 1.6 2022/11/08 08:50:20 adam Exp $
Enable limited API on all platforms.
--- setup.py.orig 2022-11-08 08:46:24.000000000 +0000
+++ setup.py
@@ -109,7 +109,7 @@ def get_version():
VERSION = get_version()
macros.append(('PSUTIL_VERSION', int(VERSION.replace('.', ''))))
-if bdist_wheel and CP36_PLUS and (MACOS or LINUX or WINDOWS):
+if bdist_wheel and CP36_PLUS:
py_limited_api = {"py_limited_api": True}
macros.append(('Py_LIMITED_API', '0x03060000'))
else:
|