python311Packages.netcdf4: fix build with clang 16
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPyPy
|
||||
@@ -50,12 +51,16 @@ buildPythonPackage rec {
|
||||
NO_NET=1 NO_CDL=1 ${python.interpreter} run_all.py
|
||||
'';
|
||||
|
||||
# Variables used to configure the build process
|
||||
USE_NCCONFIG = "0";
|
||||
HDF5_DIR = lib.getDev hdf5;
|
||||
NETCDF4_DIR = netcdf;
|
||||
CURL_DIR = curl.dev;
|
||||
JPEG_DIR = libjpeg.dev;
|
||||
env = {
|
||||
# Variables used to configure the build process
|
||||
USE_NCCONFIG = "0";
|
||||
HDF5_DIR = lib.getDev hdf5;
|
||||
NETCDF4_DIR = netcdf;
|
||||
CURL_DIR = curl.dev;
|
||||
JPEG_DIR = libjpeg.dev;
|
||||
} // lib.optionalAttrs stdenv.cc.isClang {
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion";
|
||||
};
|
||||
|
||||
pythonImportsCheck = [ "netCDF4" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user