Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo: HPy_mod_execute -> HPy_mod_exec #444

Merged
merged 2 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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