Skip to content

Commit

Permalink
BLD: Fix HPy config for PyPy (not working though)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlamy committed Jan 6, 2021
1 parent f46629a commit 0371393
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion numpy/core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,11 @@ def generate_api(ext, build_dir):
hpy_devel = HPyDevel()
hpy_include_dirs = hpy_devel.get_extra_include_dirs()
config.add_include_dirs(*hpy_include_dirs)
hpy_sources = hpy_devel.get_extra_sources() + hpy_devel.get_ctx_sources()
hpy_sources = hpy_devel.get_extra_sources()
if '__pypy__' in sys.builtin_module_names:
config.add_define_macros([("HPY_UNIVERSAL_ABI", None)])
else:
hpy_sources += hpy_devel.get_ctx_sources()

#######################################################################
# npymath library #
Expand Down

0 comments on commit 0371393

Please sign in to comment.