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

resync with upstream #49

Merged
merged 2 commits into from
Apr 11, 2024
Merged

resync with upstream #49

merged 2 commits into from
Apr 11, 2024

Conversation

mattip
Copy link
Member

@mattip mattip commented Mar 12, 2024


- name: Update CMake
uses: jwlawson/actions-setup-cmake@v1.13
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, the PR uses lukka/get-cmake@latest, where the older one used jwlawson/actions-setup-cmake@v1.13. Are they setting different compiler flags?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doubtful! But actually, the older jwlawson/actions-setup-cmake@v1.13 should continue to work just fine. I think it's just that one action is slightly faster.

run: >
cmake -S . -B build ${{ matrix.args }}
cmake -S . -B build -DNB_TEST_STABLE_ABI=ON -DNB_TEST_SHARED_BUILD="$(python3 -c 'import sys; print(int(sys.version_info.minor>=11))')"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe these macros matter?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -DNB_TEST_STABLE_ABI=ON won't do anything for PyPy, this feature only becomes active on CPython >= 3.12.

The -NB_TEST_SHARED_BUILD=... allsows the extension to be split into two parts: the actual library imported into PyPy, and a shared library that contains libnanobind's support layer. But this is actually only tested on Python >= 3.11 and we are testing PyPy 3.9 and 3.10. So again, I don't think it is relevant.

@mattip mattip merged commit ec54491 into pypy:main Apr 11, 2024
30 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants