Skip to content

Commit 96477bc

Browse files
authored
ARROW-106 Support PyArrow 8.0 (#86)
1 parent 88ee43b commit 96477bc

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

bindings/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = [
44
"wheel>=0.37",
55
"cython>=0.29",
66
# Must be kept in sync with the `install_requires` in `setup.cfg`
7-
"pyarrow>=7.0.0,<7.1.0",
7+
"pyarrow>=8.0.0,<8.1.0",
88
]
99

1010
[tool.cibuildwheel]

bindings/python/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ packages = find:
3434
python_requires = >=3.7
3535
install_requires =
3636
# keep versions in sync with pyproject.toml "requires"
37-
pyarrow >=7,<7.1
37+
pyarrow >=8,<8.1
3838
pymongo >=3.11,<5
3939

4040
[options.package_data]

bindings/python/setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,15 @@ def append_arrow_flags(module):
158158
pass
159159

160160
# Find the appropriate library file and optionally copy it locally.
161-
for name in pa.get_libraries():
161+
# Explicitly handle "parquet" library as a workaround for
162+
# https://issues.apache.org/jira/browse/ARROW-17327
163+
for name in pa.get_libraries() + ["parquet"]:
162164
if IS_WIN:
163165
if COPY_LIBARROW:
164166
lib_file = os.path.join(arrow_lib, f"{name}.dll")
165167
if not os.path.exists(lib_file):
168+
if name == "parquet":
169+
continue
166170
raise ValueError("Could not find compiled arrow library")
167171
shutil.copy(lib_file, BUILD_DIR)
168172
lib_file = os.path.join(arrow_lib, f"{name}.lib")

0 commit comments

Comments
 (0)