Skip to content

Commit 36698d8

Browse files
committed
Revert 'setup' and try importlib find_spec
1 parent 3e3e74c commit 36698d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import socket
66

77
# Bootstrap a numpy installation before trying to import it.
8-
import imp
8+
import importlib
99
try:
10-
imp.find_module('numpy')
10+
importlib.util.find_spec('numpy')
1111
except ImportError:
1212
import subprocess
1313
subprocess.call([sys.executable, '-m', 'pip', 'install', 'numpy'])
@@ -73,7 +73,7 @@
7373
# requirements.append("mock")
7474
ext_modules = [ext1]
7575

76-
setup(
76+
numpy.distutils.core.setup(
7777
name='wrf-python',
7878
author="Bill Ladwig",
7979
maintainer="GeoCAT",

0 commit comments

Comments
 (0)