Try to use backports for python2. Reverse priority order for netcdf_c++
This commit is contained in:
parent
3c976b8f8d
commit
7353701ad2
2
external/external_build.cmake
vendored
2
external/external_build.cmake
vendored
@ -210,7 +210,7 @@ ELSE(INTERNAL_NETCDF)
|
||||
find_path(NETCDF_INCLUDE_PATH NAMES netcdf.h)
|
||||
find_path(NETCDFCPP_INCLUDE_PATH NAMES netcdfcpp.h netcdf)
|
||||
find_library(NETCDF_LIBRARY netcdf)
|
||||
find_library(NETCDFCPP_LIBRARY NAMES netcdf_c++ netcdf_c++4)
|
||||
find_library(NETCDFCPP_LIBRARY NAMES netcdf_c++4 netcdf_c++)
|
||||
|
||||
SET(CONFIGURE_CPP_FLAGS "${CONFIGURE_CPP_FLAGS} -I${NETCDF_INCLUDE_PATH} -I${NETCDFCPP_INCLUDE_PATH}")
|
||||
endif (INTERNAL_NETCDF)
|
||||
|
@ -1,7 +1,11 @@
|
||||
from .config import install_prefix
|
||||
import subprocess
|
||||
import os
|
||||
from tempfile import TemporaryDirectory
|
||||
try:
|
||||
from tempfile import TemporaryDirectory
|
||||
except:
|
||||
from backports.tempfile import TemporaryDirectory
|
||||
|
||||
import h5py as h5
|
||||
import numpy as np
|
||||
import weakref
|
||||
|
Loading…
Reference in New Issue
Block a user