Skip to content

update to 2.12.0 #15

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

Merged
merged 3 commits into from
Apr 3, 2024
Merged

update to 2.12.0 #15

merged 3 commits into from
Apr 3, 2024

Conversation

cbouss
Copy link

@cbouss cbouss commented Mar 28, 2024

Changes:

  • update to 2.12.0

https://github.com/pybind/pybind11/tree/v2.12.0

Note:
pybind11 now defines two ABI version. 4 and 5 for 3.12+ or msvc.
https://github.com/pybind/pybind11/blob/v2.12.0/include/pybind11/detail/internals.h#L40
pybind11-abi is used only by libmambapy (which will require a rebuild).

@anaconda-pkg-build
Copy link

Linter check found the following problems: ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_31prcxo6j0/clone` failed. (See above for error) The following problems have been found:

===== ERRORS =====

  • clone/recipe/meta.yaml:58: missing_imports_or_run_test_py: output "pybind11-global": Python packages require imports or a python test file in tests.
  • clone/recipe/meta.yaml:0: missing_section: output "pybind11-abi": The requirements section is missing.
  • clone/recipe/meta.yaml:34: missing_tests: output "pybind11-abi": No tests were found.
    ===== Final Report: =====
    3 Errors and 0 Warnings were found

@anaconda-pkg-build
Copy link

Linter check found the following problems: ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_18jg6dz0e6/clone` failed. (See above for error) The following problems have been found:

===== ERRORS =====

  • clone/recipe/meta.yaml:61: missing_imports_or_run_test_py: output "pybind11-global": Python packages require imports or a python test file in tests.
  • clone/recipe/meta.yaml:0: missing_section: output "pybind11-abi": The requirements section is missing.
    ===== Final Report: =====
    2 Errors and 0 Warnings were found

@anaconda-pkg-build
Copy link

Linter check found the following problems: ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_c2b3q5i56r/clone` failed. (See above for error) The following problems have been found:

===== ERRORS =====

  • clone/recipe/meta.yaml:0: missing_section: output "pybind11-abi": The requirements section is missing.
  • clone/recipe/meta.yaml:63: missing_imports_or_run_test_py: output "pybind11-global": Python packages require imports or a python test file in tests.
    ===== Final Report: =====
    2 Errors and 0 Warnings were found

@anaconda-pkg-build
Copy link

Linter check found the following problems: ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_2el81t7jw0/clone` failed. (See above for error) The following problems have been found:

===== ERRORS =====

  • clone/recipe/meta.yaml:63: missing_imports_or_run_test_py: output "pybind11-global": Python packages require imports or a python test file in tests.
  • clone/recipe/meta.yaml:0: missing_section: output "pybind11-abi": The requirements section is missing.
    ===== Final Report: =====
    2 Errors and 0 Warnings were found

Copy link

@JamesRobertsonGames JamesRobertsonGames left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

{% set abi_buildnumber = "1" %}
# pybind11 now defines two ABI version. 4 and 5 for 3.12+ or msvc.
# https://github.com/pybind/pybind11/blob/v2.12.0/include/pybind11/detail/internals.h#L40
{% set abi_version = "4" %} # [py<312 and not win]
Copy link

@Jrice1317 Jrice1317 Apr 2, 2024

Choose a reason for hiding this comment

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

I see the requirement that version 5 is used for py>=312 but I can't seem to find anything related to win being affected or not. Can you please point me in the right direction?

Copy link
Author

Choose a reason for hiding this comment

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

This line has defined(_MSC_VER). (which can be read as if visual studio).
And the details are in this PR: pybind/pybind11#4779

Choose a reason for hiding this comment

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

# pybind11 now defines two ABI version. 4 and 5 for 3.12+ or msvc.
# https://github.com/pybind/pybind11/blob/v2.12.0/include/pybind11/detail/internals.h#L40
{% set abi_version = "4" %} # [py<312 and not win]
{% set abi_buildnumber = "1" %} # [py<312 and not win]

Choose a reason for hiding this comment

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

where does abi_buildnumber come from?

Choose a reason for hiding this comment

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

It's just the build number of the pybind11-abi package (line 28).

Copy link

@JeanChristopheMorinPerso JeanChristopheMorinPerso left a comment

Choose a reason for hiding this comment

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

LGTM! From conda-forge#95, it looks like conda-forge will potentially also change their pybind11-abi version to 5 for py312 and windows.

@cbouss cbouss merged commit 479f475 into master Apr 3, 2024
@cbouss cbouss deleted the PKG-4361 branch April 3, 2024 17:01
@anaconda-pkg-build
Copy link

Linter check found the following problems: ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_cfy744ih9k/clone` failed. (See above for error) The following problems have been found:

===== ERRORS =====

  • clone/recipe/meta.yaml:63: missing_imports_or_run_test_py: output "pybind11-global": Python packages require imports or a python test file in tests.
  • clone/recipe/meta.yaml:0: missing_section: output "pybind11-abi": The requirements section is missing.
    ===== Final Report: =====
    2 Errors and 0 Warnings were found

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.

6 participants