forked from conda-forge/pybind11-feedstock
-
Notifications
You must be signed in to change notification settings - Fork 0
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
update to 2.12.0 #15
Merged
update to 2.12.0 #15
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# There are several required flags, like --no-deps, but conda-build nicely sets them for us | ||
# https://github.com/conda/conda-build/blob/d75ef9c66dbcc832d8d96f33a2aecfe893266e8c/conda_build/build.py#L2517-L2527 | ||
export PYBIND11_GLOBAL_SDIST=1 | ||
$PYTHON -m pip install . -vv --no-build-isolation | ||
$PYTHON -m pip install . -vv --no-build-isolation --no-deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
:: There are several required flags, like --no-deps, but conda-build nicely sets them for us | ||
:: https://github.com/conda/conda-build/blob/d75ef9c66dbcc832d8d96f33a2aecfe893266e8c/conda_build/build.py#L2517-L2527 | ||
%PYTHON% -m pip install . -vv --no-build-isolation | ||
%PYTHON% -m pip install . -vv --no-build-isolation --no-deps | ||
if errorlevel 1 exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# There are several required flags, like --no-deps, but conda-build nicely sets them for us | ||
# https://github.com/conda/conda-build/blob/d75ef9c66dbcc832d8d96f33a2aecfe893266e8c/conda_build/build.py#L2517-L2527 | ||
$PYTHON -m pip install . -vv --no-build-isolation | ||
$PYTHON -m pip install . -vv --no-build-isolation --no-deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
{% set version = "2.10.4" %} | ||
{% set sha256 = "832e2f309c57da9c1e6d4542dedd34b24e4192ecb4d62f6f4866a737454c9970" %} | ||
{% set version = "2.12.0" %} | ||
{% set sha256 = "bf8f242abd1abcd375d516a7067490fb71abd79519a282d22b6e4d19282185a7" %} | ||
|
||
# this is set to PYBIND11_INTERNALS_VERSION | ||
{% set abi_version = "4" %} | ||
{% 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] | ||
{% set abi_buildnumber = "1" %} # [py<312 and not win] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. where does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's just the build number of the |
||
{% set abi_version = "5" %} # [py>=312 or win] | ||
{% set abi_buildnumber = "0" %} # [py>=312 or win] | ||
|
||
package: | ||
name: pybind11-split | ||
|
@@ -31,7 +35,7 @@ outputs: | |
- include/pybind11/detail/internals.h | ||
commands: | ||
# make sure the internals version matches the package version | ||
- if [[ $(grep "#[[:blank:]]*define PYBIND11_INTERNALS_VERSION" include/pybind11/detail/internals.h | rev | cut -d' ' -f1) != "{{ abi_version }}" ]]; then exit 1; fi | ||
- matched=false; while read -r version; do [ "$version" -eq "{{ abi_version }}" ] && { matched=true; break; }; done < <(awk '/define PYBIND11_INTERNALS_VERSION/{print $NF}' include/pybind11/detail/internals.h); [ "$matched" = true ] && exit 0 || exit 1 | ||
|
||
- name: pybind11-global | ||
script: build-pybind11-global.sh # [unix] | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 see the requirement that version 5 is used for
py>=312
but I can't seem to find anything related towin
being affected or not. Can you please point me in the right direction?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.
This line has
defined(_MSC_VER)
. (which can be read as if visual studio).And the details are in this PR: pybind/pybind11#4779
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.
@Jrice1317 In case you wonder,
_MSC_VER
is documented in https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170.