File tree Expand file tree Collapse file tree 6 files changed +51
-5
lines changed
com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules Expand file tree Collapse file tree 6 files changed +51
-5
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ public void initialize(Python3Core core) {
121
121
addBuiltinConstant ("ITIMER_REAL" , ITIMER_REAL );
122
122
addBuiltinConstant ("ITIMER_VIRTUAL" , ITIMER_VIRTUAL );
123
123
addBuiltinConstant ("ITIMER_PROF" , ITIMER_PROF );
124
+ addBuiltinConstant ("NSIG" , Signals .SIGMAX + 1 );
124
125
for (int i = 0 ; i < Signals .SIGNAL_NAMES .length ; i ++) {
125
126
String name = Signals .SIGNAL_NAMES [i ];
126
127
if (name != null ) {
@@ -539,7 +540,7 @@ private static final class ModuleData {
539
540
final class Signals {
540
541
static final int SIG_DFL = 0 ;
541
542
static final int SIG_IGN = 1 ;
542
- private static final int SIGMAX = 31 ;
543
+ static final int SIGMAX = 64 ;
543
544
static final String [] SIGNAL_NAMES = new String [SIGMAX + 1 ];
544
545
545
546
static {
Original file line number Diff line number Diff line change @@ -140,10 +140,17 @@ index 0000000..c9826ce
140
140
+ shutil.copyfile(wheel, wheel_directory / wheel.name)
141
141
+ return str(wheel.name)
142
142
diff --git a/pyproject.toml b/pyproject.toml
143
- index fe8c938..8945652 100644
143
+ index fe8c938..3f9e7c5 100644
144
144
--- a/pyproject.toml
145
145
+++ b/pyproject.toml
146
- @@ -23,3 +23,5 @@ requires = [
146
+ @@ -17,9 +17,11 @@
147
+
148
+ [build-system]
149
+ requires = [
150
+ - "cython >= 0.29.31",
151
+ + "cython >= 0.29.31, < 3",
152
+ "oldest-supported-numpy>=0.14",
153
+ "setuptools_scm",
147
154
"setuptools >= 40.1.0",
148
155
"wheel"
149
156
]
Original file line number Diff line number Diff line change @@ -140,10 +140,17 @@ index 0000000..955ac8d
140
140
+ shutil.copyfile(wheel, wheel_directory / wheel.name)
141
141
+ return str(wheel.name)
142
142
diff --git a/pyproject.toml b/pyproject.toml
143
- index 437de10..bbae50f 100644
143
+ index 437de10..a78c7ee 100644
144
144
--- a/pyproject.toml
145
145
+++ b/pyproject.toml
146
- @@ -23,3 +23,5 @@ requires = [
146
+ @@ -17,9 +17,11 @@
147
+
148
+ [build-system]
149
+ requires = [
150
+ - "cython >= 0.29.31",
151
+ + "cython >= 0.29.31, < 3",
152
+ "oldest-supported-numpy>=0.14",
153
+ "setuptools_scm < 8.0.0",
147
154
"setuptools >= 40.1.0",
148
155
"wheel"
149
156
]
Original file line number Diff line number Diff line change
1
+ diff --git a/pyproject.toml b/pyproject.toml
2
+ index 9ad9298..b0ce0fa 100644
3
+ --- a/pyproject.toml
4
+ +++ b/pyproject.toml
5
+ @@ -1,9 +1,9 @@
6
+ [build-system]
7
+ # Minimum requirements for the build system to execute.
8
+ requires = [
9
+ - "setuptools<60.0",
10
+ + "setuptools",
11
+ "wheel",
12
+ - "Cython>=0.28.5",
13
+ + "Cython>=0.28.5,<3",
14
+
15
+ # use oldest-supported-numpy which provides the oldest numpy version with
16
+ # wheels on PyPI
1
17
diff --git a/sklearn/_build_utils/__init__.py b/sklearn/_build_utils/__init__.py
2
18
index d8206a3..e7b7bf4 100644
3
19
--- a/sklearn/_build_utils/__init__.py
Original file line number Diff line number Diff line change
1
+ [[rules ]]
2
+ patch = ' uvloop.patch'
Original file line number Diff line number Diff line change
1
+ diff --git a/setup.py b/setup.py
2
+ index ba15af5..263a5b0 100644
3
+ --- a/setup.py
4
+ +++ b/setup.py
5
+ @@ -84,7 +84,7 @@ class uvloop_build_ext(build_ext):
6
+ def initialize_options(self):
7
+ super().initialize_options()
8
+ self.use_system_libuv = False
9
+ - self.cython_always = False
10
+ + self.cython_always = True
11
+ self.cython_annotate = None
12
+ self.cython_directives = None
13
+
You can’t perform that action at this time.
0 commit comments