Skip to content

Commit

Permalink
MAINT: Create lib path if missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
charris committed Jan 6, 2023
1 parent cdbb297 commit 2a3ae30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions numpy/distutils/mingw32ccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ def _build_import_library_x86():
from numpy.distutils import lib2def

def_name = "python%d%d.def" % tuple(sys.version_info[:2])
os.makedirs(os.path.join(sys.prefix, 'libs'), exist_ok=True)
def_file = os.path.join(sys.prefix, 'libs', def_name)
nm_output = lib2def.getnm(
lib2def.DEFAULT_NM + [lib_file], shell=False)
Expand Down

0 comments on commit 2a3ae30

Please sign in to comment.