Skip to content

Commit

Permalink
scripts/gh_release.py: avoid pyodide build problem with old .pyodide-…
Browse files Browse the repository at this point in the history
…xbuildenv/ dir.
  • Loading branch information
julian-smith-artifex-com committed Jun 25, 2024
1 parent 35e7e0f commit c940484
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/gh_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,11 @@ def pyodide_setup(clean=False):
# Clone emsdk.
#
dir_emsdk = 'emsdk'
if clean and os.path.exists(dir_emsdk):
shutil.rmtree( dir_emsdk, ignore_errors=1)
if clean:
shutil.rmtree(dir_emsdk, ignore_errors=1)
# 2024-06-25: old `.pyodide-xbuildenv` directory was breaking build, so
# important to remove it here.
shutil.rmtree('.pyodide-xbuildenv', ignore_errors=1)
if not os.path.exists(dir_emsdk):
command += f' && echo "### cloning emsdk.git"'
command += f' && git clone https://github.com/emscripten-core/emsdk.git {dir_emsdk}'
Expand Down

0 comments on commit c940484

Please sign in to comment.