Merge pull request #93889 from marsam/fix-pandas-darwin

python38Packages.pandas: fix build on darwin
This commit is contained in:
Mario Rodas 2020-07-26 16:33:35 -05:00 committed by GitHub
commit 8aa8da2bc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@
, tables
, xlwt
, runtimeShell
, isPy38
, libcxx ? null
}:
@ -67,7 +68,9 @@ in buildPythonPackage rec {
"['pandas/src/klib', 'pandas/src', '$cpp_sdk']"
'';
setupPyBuildFlags = [
# Parallel Cythonization is broken in Python 3.8 on Darwin. Fixed in the next
# release. https://github.com/pandas-dev/pandas/pull/30862
setupPyBuildFlags = optionals (!(isPy38 && isDarwin)) [
# As suggested by
# https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#creating-a-python-environment
"--parallel=$NIX_BUILD_CORES"