Merge pull request #69642 from ttuegel/bug--staging-19.09--hdf5

hdf5: Fix dependencies and flavors with multiple outputs
This commit is contained in:
Thomas Tuegel
2019-09-28 06:10:39 -05:00
committed by GitHub
3 changed files with 8 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, isPyPy, pytest
{ stdenv, lib, buildPythonPackage, fetchPypi, isPyPy, pytest
, numpy, zlib, netcdf, hdf5, curl, libjpeg, cython, cftime
}:
buildPythonPackage rec {
@@ -37,7 +37,7 @@ buildPythonPackage rec {
# Variables used to configure the build process
USE_NCCONFIG="0";
HDF5_DIR=hdf5;
HDF5_DIR = lib.getDev hdf5;
NETCDF4_DIR=netcdf;
CURL_DIR=curl.dev;
JPEG_DIR=libjpeg.dev;

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchPypi, python, buildPythonPackage
{ stdenv, lib, fetchPypi, python, buildPythonPackage
, cython, bzip2, lzo, numpy, numexpr, hdf5, six, c-blosc, mock }:
buildPythonPackage rec {
@@ -16,7 +16,7 @@ buildPythonPackage rec {
# The setup script complains about missing run-paths, but they are
# actually set.
setupPyBuildFlags =
[ "--hdf5=${hdf5}"
[ "--hdf5=${lib.getDev hdf5}"
"--lzo=${lzo}"
"--bzip2=${bzip2.dev}"
"--blosc=${c-blosc}"

View File

@@ -53,7 +53,10 @@ stdenv.mkDerivation rec {
postInstall = ''
find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
moveToOutput bin/h5cc "''${!outputDev}"
moveToOutput 'bin/h5cc' "''${!outputDev}"
moveToOutput 'bin/h5c++' "''${!outputDev}"
moveToOutput 'bin/h5fc' "''${!outputDev}"
moveToOutput 'bin/h5pcc' "''${!outputDev}"
'';
meta = {