Skip to content

Commit

Permalink
chore: build pyodide wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Jun 7, 2024
1 parent 8356fbd commit c2e2950
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_pyodide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ jobs:
inputs_wheels_default: 0
inputs_wheels_linux_pyodide: 1
inputs_wheels_implementations: b
run:
sudo apt-get install python3-distutils && python scripts/gh_release.py build
run: |
python -m pip install --upgrade setuptools
python -m pip install --upgrade virtualenv
python scripts/gh_release.py build
# Upload generated wheels, to be accessible from github Actions page.
Expand Down
18 changes: 11 additions & 7 deletions gh_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,14 +569,18 @@ def pyodide_setup(clean=False):

# Create and enter Python venv.
#
venv_pyodide = 'venv_pyodide'
if not os.path.exists( venv_pyodide):
command += f' && echo "### creating venv {venv_pyodide}"'
command += f' && {sys.executable} -m venv {venv_pyodide}'
command += f' && . {venv_pyodide}/bin/activate'
command += f' && echo "### running pip install ..."'
# venv_pyodide = 'venv_pyodide'
# if not os.path.exists( venv_pyodide):
# command += f' && echo "### upgrading virtualenv" ...'
# command += f' && python -m pip install --upgrade virtualenv'
# command += f' && echo "### creating venv {venv_pyodide}"'
# command += f' && {sys.executable} -m venv {venv_pyodide}'
# command += f' && . {venv_pyodide}/bin/activate'
command += f' && echo "### upgrading pip ..."'
command += f' && python -m ensurepip --upgrade'
command += f' && echo "### installing setuptools ..."'
command += f' && python -m pip install --upgrade pip wheel setuptools==70.0.0'
command += f' && python -m pip install --upgrade setuptools'
command += f' && echo "### running pip install ..."'
command += f' && python -m pip install --upgrade pip wheel pyodide-build==0.23.4'

# Run emsdk install scripts and enter emsdk environment.
Expand Down

0 comments on commit c2e2950

Please sign in to comment.