Try to use backports for python2. Reverse priority order for netcdf_c++

This commit is contained in:
Guilhem Lavaux 2018-03-24 22:00:36 +01:00
parent 3c976b8f8d
commit 7353701ad2
2 changed files with 6 additions and 2 deletions

View file

@ -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