Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dcbe689

Browse files
committed
BLD: fix arrow build
1 parent 55f28e0 commit dcbe689

1 file changed

Lines changed: 10 additions & 25 deletions

File tree

build_py_env.xsh

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -303,21 +303,7 @@ def pandas_build(**kwargs):
303303
return ret
304304

305305
def build_pyarrow(**kwargs):
306-
patch = """diff --git a/cpp/cmake_modules/Findlz4Alt.cmake b/cpp/cmake_modules/Findlz4Alt.cmake
307-
index 77a22957f..ce35d81eb 100644
308-
--- a/cpp/cmake_modules/Findlz4Alt.cmake
309-
+++ b/cpp/cmake_modules/Findlz4Alt.cmake
310-
@@ -33,6 +33,9 @@ if(lz4_FOUND)
311-
if(NOT TARGET LZ4::lz4 AND TARGET lz4::lz4)
312-
add_library(LZ4::lz4 ALIAS lz4::lz4)
313-
endif()
314-
+ if(NOT TARGET LZ4::lz4 AND TARGET LZ4::lz4_shared)
315-
+ add_library(LZ4::lz4 ALIAS LZ4::lz4_shared)
316-
+ endif()
317-
return()
318-
endif()
319306

320-
"""
321307
auto_main(**kwargs)
322308
git stash
323309
git clean -xfd
@@ -326,23 +312,22 @@ index 77a22957f..ce35d81eb 100644
326312
$PARQUET_TEST_DATA=$PWD+"/cpp/submodules/parquet-testing/data"
327313
$PARQUET_TEST_DATA
328314
$ARROW_TEST_DATA=$PWD+"/testing/data"
329-
cd ../
330-
mkdir dist
331-
$ARROW_HOME=$PWD +'/dist'
332-
$PREFIX = $(python -c "import sysconfig;print(sysconfig.get_path('data'))") + '/lib'
333-
$LD_LIBRARY_PATH= [$PWD+"/dist/lib"]
334-
$CMAKE_PREFIX_PATH=[$ARROW_HOME]
335-
# patch from Arch packages
336-
# patch < lz4-cmake.patch -p 1
337-
cmake -S arrow/cpp -B arrow/cpp/build \
315+
$PREFIX = $(python -c "import sysconfig;print(sysconfig.get_path('data'))")
316+
mkdir cpp/build
317+
# $CMAKE_PREFIX_PATH=[$ARROW_HOME]
318+
cmake -S cpp -B cpp/build \
338319
-DCMAKE_INSTALL_PREFIX=$PREFIX \
339320
--preset ninja-release-python
340-
cmake --build arrow/cpp/build --target install -j
341-
pushd arrow/python
321+
cmake --build cpp/build --target install -j
322+
pushd python
342323
git clean -xfd
343324
$PYARROW_WITH_PARQUET=1
344325
$PYARROW_WITH_DATASET=1
345326
$PYARROW_PARALLEL=25
327+
$LD_LIBRARY_PATH= [$PREFIX + '/lib']
328+
$CPATH=[$PREFIX + '/include']
329+
print(${'LD_LIBRARY_PATH'})
330+
print(${'CPATH'})
346331
return !(pip install -v . --no-build-isolation)
347332

348333
def build_yarl(name, **kwargs):

0 commit comments

Comments
 (0)