-
Notifications
You must be signed in to change notification settings - Fork 51
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
CI fixes and documentation for Pybind v2.12.0 and Numpy 2.0 #1637
Conversation
@@ -2406,13 +2465,15 @@ | |||
typename Sentinel, | |||
typename ValueType = typename detail::iterator_access<Iterator>::result_type, | |||
typename... Extra> | |||
iterator make_iterator(Iterator first, Sentinel last, Extra &&...extra) { | |||
typing::Iterator<ValueType> make_iterator(Iterator first, Sentinel last, Extra &&...extra) { |
Check notice
Code scanning / CodeQL
Unused static variable Note
@@ -2422,13 +2483,15 @@ | |||
typename Sentinel, | |||
typename KeyType = typename detail::iterator_key_access<Iterator>::result_type, | |||
typename... Extra> | |||
iterator make_key_iterator(Iterator first, Sentinel last, Extra &&...extra) { | |||
typing::Iterator<KeyType> make_key_iterator(Iterator first, Sentinel last, Extra &&...extra) { |
Check notice
Code scanning / CodeQL
Unused static variable Note
@@ -2406,13 +2465,15 @@ | |||
typename Sentinel, | |||
typename ValueType = typename detail::iterator_access<Iterator>::result_type, | |||
typename... Extra> | |||
iterator make_iterator(Iterator first, Sentinel last, Extra &&...extra) { | |||
typing::Iterator<ValueType> make_iterator(Iterator first, Sentinel last, Extra &&...extra) { |
Check notice
Code scanning / CodeQL
Unused local variable Note
@@ -2422,13 +2483,15 @@ | |||
typename Sentinel, | |||
typename KeyType = typename detail::iterator_key_access<Iterator>::result_type, | |||
typename... Extra> | |||
iterator make_key_iterator(Iterator first, Sentinel last, Extra &&...extra) { | |||
typing::Iterator<KeyType> make_key_iterator(Iterator first, Sentinel last, Extra &&...extra) { |
Check notice
Code scanning / CodeQL
Unused local variable Note
d1b1220
to
f86386e
Compare
c794d05
to
5d41f83
Compare
5d41f83
to
2e22b52
Compare
.github/workflows/linux.yml
Outdated
# compatibility issues between the two versions. | ||
sudo apt -y autoremove python3 | ||
sudo apt install clang-14 cmake gfortran libhdf5-dev python3.11 python3.11-dev wget | ||
python="$(which python3.11)" | ||
sudo ln -s "$python" "${python%.11}" | ||
sudo ln -s "$python" "${python%3.11}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still needed with a venv?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not using a venv here, but I can try it as an alternative
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that works too. I just have to take care that Spack does not use the venv since it will try finding headers inside the venv.
5b83753
to
658a633
Compare
c403034
to
04b0471
Compare
04b0471
to
69c481c
Compare
With the Pybind upgrade to v2.12.0 and the Numpy upgrade to v2.0, some previous CI setup warnings turned into errors, leading to broken Python imports. Fix by (1) removing conflicting Python versions or (2) using Python virtualenvs.
#1640 and this (#1637) are two separate PRs since I don't want to squash the commits, #1640 has another author (third-party lib).