Skip to content

Commit ba73321

Browse files
committed
packages/python-flint: Add flintlib/python-flint#112 as a patch
1 parent a865f95 commit ba73321

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

packages/python-flint/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ source:
1313
sha256: 0358f05548d477e23c79dbe15b2449e12e4b3d76af41fb16a4c7d035065b12cd
1414
patches:
1515
- patches/108.patch
16+
- patches/112.patch
1617
build:
1718
cflags: |
1819
-I$(WASM_LIBRARY_DIR)/include
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

0 commit comments

Comments
 (0)