Browse Source

Merge pull request #39 from letmaik/mingw

Add support for gfortran+msvc for building PyPI-suitable Windows wheels
lon0
Bill Ladwig 7 years ago committed by GitHub
parent
commit
6f5c8c3be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      src/wrf/__init__.py

12
src/wrf/__init__.py

@ -1,5 +1,17 @@
from __future__ import (absolute_import, division, print_function, from __future__ import (absolute_import, division, print_function,
unicode_literals) unicode_literals)
import os
import pkg_resources
# For gfortran+msvc combination, extra shared libraries may exist (stored by numpy.distutils)
if os.name == 'nt':
try:
req = pkg_resources.Requirement.parse('wrf-python')
extra_dll_dir = pkg_resources.resource_filename(req, 'wrf-python/extra-dll')
if os.path.isdir(extra_dll_dir):
os.environ['PATH'] += os.pathsep + extra_dll_dir
except ImportError:
pass
from . import api from . import api
from .api import * from .api import *

Loading…
Cancel
Save