Skip to content

Commit

Permalink
Merge pull request #200 from lpsinger/pypy-wheels
Browse files Browse the repository at this point in the history
Build wheels for PyPy
  • Loading branch information
lpsinger committed Nov 28, 2023
2 parents f7714f7 + 28d8ca1 commit adb6392
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
toxenv: py311-test-alldeps-predeps

- name: Python 3.9 with oldest supported version of all dependencies
os: ubuntu-22.04
os: ubuntu-20.04
python: 3.9
toxenv: py39-test-oldestdeps

Expand Down
22 changes: 22 additions & 0 deletions astropy_healpix/_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,28 @@
*/
#include "ieee754.h"

/* FIXME:
* The Numpy C-API defines PyArrayDescr_Type as:
*
* #define PyArrayDescr_Type (*(PyTypeObject *)PyArray_API[3])
*
* and then in some places we need to take its address, &PyArrayDescr_Type.
* This is fine in GCC 10 and Clang, but earlier versions of GCC complain:
*
* error: dereferencing pointer to incomplete type 'PyTypeObject'
* {aka 'struct _typeobject'}
*
* As a workaround, provide a faux forward declaration for PyTypeObject.
* See https://github.com/numpy/numpy/issues/16970.
*
* Drop this when supporting gcc < 10 becomes irrelevant.
*/
#ifndef PYPY_VERSION
struct _typeobject {
int _placeholder;
};
#endif


#define INVALID_INDEX (-1)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ requires = ["setuptools>=42.0.0",
build-backend = 'setuptools.build_meta'

[tool.cibuildwheel]
skip = "*-musllinux_* pp*"
skip = "*-musllinux_* pp310*"

[tool.cibuildwheel.macos]
archs = ["x86_64", "universal2"]

0 comments on commit adb6392

Please sign in to comment.