File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
graalpython/lib-graalpython/patches/pyarrow Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/pyarrow/error.pxi b/pyarrow/error.pxi
2
+ index 46ea021..58a3fb5 100644
3
+ --- a/pyarrow/error.pxi
4
+ +++ b/pyarrow/error.pxi
5
+ @@ -232,7 +232,7 @@ cdef class SignalStopHandler:
6
+ if exc_value.signum:
7
+ # Re-emit the exact same signal. We restored the Python signal
8
+ # handler above, so it should receive it.
9
+ - if os.name == 'nt':
10
+ + if os.name == 'nt' or sys.implementation.name == 'graalpy':
11
+ SendSignal(exc_value.signum)
12
+ else:
13
+ SendSignalToThread(exc_value.signum,
1
14
diff --git a/pyarrow_build_backend.py b/pyarrow_build_backend.py
2
15
new file mode 100644
3
- index 0000000..525bb34
16
+ index 0000000..c9826ce
4
17
--- /dev/null
5
18
+++ b/pyarrow_build_backend.py
6
- @@ -0,0 +1,95 @@
19
+ @@ -0,0 +1,93 @@
7
20
+ import os
8
21
+ import re
9
22
+ import sys
@@ -87,14 +100,12 @@ index 0000000..525bb34
87
100
+ env['PYARROW_WITH_GANDIVA'] = '1'
88
101
+ env['PYARROW_BUNDLE_ARROW_CPP'] = '1'
89
102
+ env['PYARROW_BUNDLE_CYTHON_CPP'] = '1'
90
- + pyarrow_dir = arrow_dir / 'python'
91
103
+ subprocess.run(
92
104
+ [sys.executable, 'setup.py', 'bdist_wheel'],
93
105
+ env=env,
94
- + cwd=pyarrow_dir,
95
106
+ check=True,
96
107
+ )
97
- + wheels = list((pyarrow_dir / 'dist').glob('*.whl'))
108
+ + wheels = list(Path( 'dist').glob('*.whl'))
98
109
+ assert len(wheels) == 1, f"Expected 1 wheel, found {len(wheels)}"
99
110
+ wheel = wheels[0]
100
111
+ shutil.copyfile(wheel, wheel_directory / wheel.name)
You can’t perform that action at this time.
0 commit comments