File tree 2 files changed +37
-0
lines changed 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ source:
13
13
sha256 : 0358f05548d477e23c79dbe15b2449e12e4b3d76af41fb16a4c7d035065b12cd
14
14
patches :
15
15
- patches/108.patch
16
+ - patches/112.patch
16
17
build :
17
18
cflags : |
18
19
-I$(WASM_LIBRARY_DIR)/include
Original file line number Diff line number Diff line change
1
+ From 54a049e0a69ec678af1b8374f1b64206bdb40f60 Mon Sep 17 00:00:00 2001
2
+ From: Matthias Koeppe <
[email protected] >
3
+ Date: Thu, 25 Jan 2024 10:44:05 -0800
4
+ Subject: [PATCH] pyproject.toml, setup.py: Only use numpy.distutils on win32
5
+
6
+ This is https://github.com/flintlib/python-flint/pull/112
7
+
8
+ ---
9
+ pyproject.toml | 2 +-
10
+ setup.py | 2 +-
11
+ 2 files changed, 2 insertions(+), 2 deletions(-)
12
+
13
+ diff --git a/pyproject.toml b/pyproject.toml
14
+ index 657c8df..d29c41d 100644
15
+ --- a/pyproject.toml
16
+ +++ b/pyproject.toml
17
+ @@ -1,5 +1,5 @@
18
+ [build-system]
19
+ requires = ["setuptools",
20
+ - "numpy",
21
+ + "numpy; sys_platform == 'win32' and python_version < '3.12'",
22
+ "Cython>=3"]
23
+ build-backend = "setuptools.build_meta"
24
+ diff --git a/setup.py b/setup.py
25
+ index fa727ab..23b4b82 100644
26
+ --- a/setup.py
27
+ +++ b/setup.py
28
+ @@ -6,7 +6,7 @@
29
+ from Cython.Build import cythonize
30
+
31
+
32
+ - if sys.version_info < (3, 12):
33
+ + if sys.platform == 'win32' and sys.version_info < (3, 12):
34
+ from distutils.core import setup
35
+ from distutils.extension import Extension
36
+ from numpy.distutils.system_info import default_include_dirs, default_lib_dirs
You can’t perform that action at this time.
0 commit comments