Skip to content

Commit

Permalink
Merge pull request #444 from mattip/typo
Browse files Browse the repository at this point in the history
fix typo: HPy_mod_execute -> HPy_mod_exec
  • Loading branch information
fangerer authored Jul 24, 2023
2 parents 5ddcbc8 + 2598922 commit 8310a76
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,16 @@ jobs:
# parameters:
# pythonVersion: "2.7"

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '2.7'
- name: Set up Python2
# Copied from cython's ci.yml
run: |
sudo ln -fs python2 /usr/bin/python
sudo apt-get update
sudo apt-get install python-setuptools python2.7 python2.7-dev
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
ls -l /usr/bin/pip* /usr/local/bin/pip*
which pip
- name: Install/Upgrade Python dependencies
run: python -m pip install --upgrade pip wheel
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/quickstart/quickstart.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ static HPyModuleDef quickstart_def = {

// The Python interpreter will create the module for us from the
// HPyModuleDef specification. Additional initialization can be
// done in the HPy_mod_execute slot
// done in the HPy_mod_exec slot
HPy_MODINIT(quickstart, quickstart_def)
2 changes: 1 addition & 1 deletion hpy/devel/include/hpy/hpymodule.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ typedef struct {
* structure that will serve as a specification of the module that should be
* created by the interpreter. HPy supports only multi-phase module
* initialization (PEP 451). Any module initialization code can be added
* to the HPy_mod_execute slot of the module if needed.
* to the HPy_mod_exec slot of the module if needed.
*
* Example:
*
Expand Down

0 comments on commit 8310a76

Please sign in to comment.