Skip to content

Commit

Permalink
setup.py: add workaround for MSYS2 UCRT64 env path bug
Browse files Browse the repository at this point in the history
MMGen now uses UCRT64 as the default MSYS2 configuration (see
doc/wiki/install-mswin/Install-MMGen-on-Microsoft-Windows.md).
  • Loading branch information
mmgen committed May 21, 2023
1 parent bb92ad4 commit ebb7754
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mmgen/data/version
@@ -1 +1 @@
13.3.dev57
13.3.dev58
5 changes: 5 additions & 0 deletions setup.py
Expand Up @@ -20,9 +20,14 @@ def fix_broken_libpython_fn():
print(f'Fixing broken library filename: {old.name!r} -> {new.name!r}')
shutil.copy2(old,new)

def fix_broken_aclocal_path():
os.environ['ACLOCAL_PATH'] = '/ucrt64/share/aclocal:/usr/share/aclocal'

import platform
if platform.system() == 'Windows':
fix_broken_libpython_fn()
if os.getenv('MSYSTEM') == 'UCRT64':
fix_broken_aclocal_path()

if not os.path.exists(cache_path):
os.makedirs(cache_path)
Expand Down

0 comments on commit ebb7754

Please sign in to comment.