arrow-cpp: 0.10.0 -> 0.11.0 (#48066)
* arrow-cpp: 0.10.0 -> 0.11.0 * arrow-cpp: enable testing
This commit is contained in:
committed by
Frederik Rietdijk
parent
045a4a4b72
commit
4ed993367f
@@ -1,8 +1,7 @@
|
||||
{ lib, buildPythonPackage, python, isPy3k, fetchurl, arrow-cpp, cmake, cython, futures, JPype1, numpy, pandas, pytest, pytestrunner, parquet-cpp, pkgconfig, setuptools_scm, six }:
|
||||
{ lib, buildPythonPackage, python, isPy3k, fetchurl, arrow-cpp, cmake, cython, futures, JPype1, numpy, pandas, pytest, pytestrunner, pkgconfig, setuptools_scm, six }:
|
||||
|
||||
let
|
||||
_arrow-cpp = arrow-cpp.override { inherit python;};
|
||||
_parquet-cpp = parquet-cpp.override { arrow-cpp = _arrow-cpp; };
|
||||
_arrow-cpp = arrow-cpp.override { inherit python; };
|
||||
in
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -17,18 +16,11 @@ buildPythonPackage rec {
|
||||
checkInputs = [ pandas pytest pytestrunner JPype1 ];
|
||||
|
||||
PYARROW_BUILD_TYPE = "release";
|
||||
PYARROW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib;${PARQUET_HOME}/lib";
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace CMakeLists.txt --replace "\''${ARROW_ABI_VERSION}" '"0.0.0"'
|
||||
substituteInPlace CMakeLists.txt --replace "\''${ARROW_SO_VERSION}" '"0"'
|
||||
|
||||
# fix the hardcoded value
|
||||
substituteInPlace cmake_modules/FindParquet.cmake --replace 'set(PARQUET_ABI_VERSION "1.0.0")' 'set(PARQUET_ABI_VERSION "${_parquet-cpp.version}")'
|
||||
'';
|
||||
PYARROW_CMAKE_OPTIONS = "-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib";
|
||||
|
||||
preCheck = ''
|
||||
rm pyarrow/tests/test_hdfs.py
|
||||
rm pyarrow/tests/test_cuda.py
|
||||
|
||||
# fails: "ArrowNotImplementedError: Unsupported numpy type 22"
|
||||
substituteInPlace pyarrow/tests/test_feather.py --replace "test_timedelta_with_nulls" "_disabled"
|
||||
@@ -47,7 +39,7 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
ARROW_HOME = _arrow-cpp;
|
||||
PARQUET_HOME = _parquet-cpp;
|
||||
PARQUET_HOME = _arrow-cpp;
|
||||
|
||||
setupPyBuildFlags = ["--with-parquet" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user