mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #148262 from veprbl/pr/pyarrow_darwin_fix
python3Packages.pyarrow: fix darwin build for when a build flag is false
This commit is contained in:
commit
f515c92ddf
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
|||
{ lib, stdenv, buildPythonPackage, python, isPy3k, arrow-cpp, cmake, cython, hypothesis, numpy, pandas, pytestCheckHook, pytest-lazy-fixture, pkg-config, setuptools-scm, six }:
|
||||
|
||||
let
|
||||
zero_or_one = cond: if cond then 1 else 0;
|
||||
|
||||
_arrow-cpp = arrow-cpp.override { python3 = python; };
|
||||
in
|
||||
|
||||
|
@ -18,9 +20,9 @@ buildPythonPackage rec {
|
|||
|
||||
PYARROW_BUILD_TYPE = "release";
|
||||
|
||||
PYARROW_WITH_DATASET = true;
|
||||
PYARROW_WITH_FLIGHT = _arrow-cpp.enableFlight;
|
||||
PYARROW_WITH_PARQUET = true;
|
||||
PYARROW_WITH_DATASET = zero_or_one true;
|
||||
PYARROW_WITH_FLIGHT = zero_or_one _arrow-cpp.enableFlight;
|
||||
PYARROW_WITH_PARQUET = zero_or_one true;
|
||||
|
||||
PYARROW_CMAKE_OPTIONS = [
|
||||
"-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib"
|
||||
|
|
Loading…
Reference in a new issue