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,
114diff --git a/pyarrow_build_backend.py b/pyarrow_build_backend.py
215new file mode 100644
3- index 0000000..525bb34
16+ index 0000000..c9826ce
417--- /dev/null
518+++ b/pyarrow_build_backend.py
6- @@ -0,0 +1,95 @@
19+ @@ -0,0 +1,93 @@
720+ import os
821+ import re
922+ import sys
@@ -87,14 +100,12 @@ index 0000000..525bb34
87100+ env['PYARROW_WITH_GANDIVA'] = '1'
88101+ env['PYARROW_BUNDLE_ARROW_CPP'] = '1'
89102+ env['PYARROW_BUNDLE_CYTHON_CPP'] = '1'
90- + pyarrow_dir = arrow_dir / 'python'
91103+ subprocess.run(
92104+ [sys.executable, 'setup.py', 'bdist_wheel'],
93105+ env=env,
94- + cwd=pyarrow_dir,
95106+ check=True,
96107+ )
97- + wheels = list((pyarrow_dir / 'dist').glob('*.whl'))
108+ + wheels = list(Path( 'dist').glob('*.whl'))
98109+ assert len(wheels) == 1, f"Expected 1 wheel, found {len(wheels)}"
99110+ wheel = wheels[0]
100111+ shutil.copyfile(wheel, wheel_directory / wheel.name)
You can’t perform that action at this time.
0 commit comments