Skip to content

Commit 0c5bc64

Browse files
setup.py: Help cibuildwheel pyodide builds to work.
Set OS=pyodide if PYODIDE=1.
1 parent 29862c9 commit 0c5bc64

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,12 @@ def get_mupdf(path=None, sha=None):
575575
darwin = sys.platform.startswith( 'darwin')
576576
windows = platform.system() == 'Windows' or platform.system().startswith('CYGWIN')
577577
msys2 = platform.system().startswith('MSYS_NT-')
578+
579+
if os.environ.get('PYODIDE') == '1':
580+
if os.environ.get('OS') != 'pyodide':
581+
log('PYODIDE=1, setting OS=pyodide.')
582+
os.environ['OS'] = 'pyodide'
583+
578584
pyodide = os.environ.get('OS') == 'pyodide'
579585

580586

0 commit comments

Comments
 (0)