generated from pybind/cmake_example
-
Notifications
You must be signed in to change notification settings - Fork 0
add eigen #4
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
add eigen #4
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
8acc0ad
add eigen
shapiromatron 749f096
continue
shapiromatron 74e6145
remove final quote
shapiromatron d1fe10c
comment
shapiromatron 352d009
comment
shapiromatron 27b5033
Merge commit 'd1fe10ce35626d9fcab3031bdbe69a375e76f2b1' into eigen
shapiromatron 9524b77
try to compile
shapiromatron e759713
try to build
shapiromatron db6e297
set triplet
shapiromatron d80f27e
debug
shapiromatron 1e438a4
whoops
shapiromatron c2b9250
next
shapiromatron 6180cea
start wheels
shapiromatron badf29d
add triplet to CMakeLists.txt
shapiromatron 3c4c25f
continue
shapiromatron ca90a89
progress
shapiromatron ea4d2f7
continue
shapiromatron da788e5
continue
shapiromatron 8376ea8
no exe on linux
shapiromatron 5ca16a2
try all
shapiromatron 790072a
cache
shapiromatron 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -18,21 +18,55 @@ jobs: | |
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Cache dependencies | ||
| id: cache-vcpkg-deps | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: vcpkg_installed | ||
| key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }} | ||
|
|
||
| - name: Acquire vcpkg | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: true | ||
| repository: "Microsoft/vcpkg" | ||
| path: vcpkg | ||
| ref: c9c17dcea3016bc241df0422e82b8aea212dcb93 | ||
|
|
||
| - name: Install libraries with vcpkg.json (macOS/Linux) | ||
| shell: bash | ||
| run: | | ||
| case "${RUNNER_OS}" in | ||
| "Windows") | ||
| VCPKG_HOST_TRIPLET="x64-mingw-dynamic" | ||
| ;; | ||
| "Linux") | ||
| VCPKG_HOST_TRIPLET="x64-linux-dynamic" | ||
| ;; | ||
| "macOS") | ||
| VCPKG_HOST_TRIPLET="arm64-osx-dynamic" | ||
| ;; | ||
| *) | ||
| echo "Unsupported RUNNER_OS: ${RUNNER_OS}" | ||
| exit 1 | ||
| ;; | ||
| esac | ||
| echo VCPKG_HOST_TRIPLET="$VCPKG_HOST_TRIPLET" >> $GITHUB_ENV | ||
| echo $VCPKG_HOST_TRIPLET | ||
|
|
||
| - uses: pypa/[email protected] | ||
| env: | ||
| CIBW_BUILD: "cp313-*" | ||
| CIBW_SKIP: "*musllinux* *win32*" | ||
|
|
||
| CIBW_BEFORE_ALL_WINDOWS: bash tools\cibw_before_windows.sh | ||
| CIBW_BEFORE_ALL_WINDOWS: bash tools\cibw_before.sh | ||
| CIBW_ENVIRONMENT_WINDOWS: "CMAKE_PREFIX_PATH=D:/a/pycpp/pycpp/pybind11/pybind11/share/cmake" | ||
|
|
||
| CIBW_BEFORE_ALL_LINUX: "source tools/cibw_before_linux.sh" | ||
| CIBW_ENVIRONMENT_PASS_LINUX: "VCPKG_HOST_TRIPLET RUNNER_OS" | ||
| CIBW_BEFORE_ALL_LINUX: "source tools/cibw_before.sh" | ||
| CIBW_ENVIRONMENT_LINUX: "CMAKE_PREFIX_PATH=/project/pybind11/pybind11/share/cmake" | ||
|
|
||
| CIBW_BEFORE_ALL_MACOS: "source tools/cibw_before_linux.sh" | ||
| CIBW_BEFORE_ALL_MACOS: "source tools/cibw_before.sh" | ||
| CIBW_ENVIRONMENT_MACOS: "CMAKE_PREFIX_PATH=${{ github.workspace }}/pybind11/pybind11/share/cmake" | ||
| MACOSX_DEPLOYMENT_TARGET: "14.0" | ||
|
|
||
|
|
||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -9,3 +9,5 @@ _generate/ | |
|
|
||
| cfg/ | ||
| pybind11/ | ||
| vcpkg/ | ||
| vcpkg_installed/ | ||
This file contains hidden or 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 hidden or 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,24 @@ | ||
| # cppcore for pybind11 | ||
|
|
||
| MacOS installation: | ||
|
|
||
| ```bash | ||
| mkdir vcpkg | ||
| cd vcpkg | ||
| git init | ||
| git remote add origin [email protected]:microsoft/vcpkg.git | ||
| git fetch --depth 1 origin c9c17dcea3016bc241df0422e82b8aea212dcb93 | ||
| git checkout FETCH_HEAD | ||
| cd .. | ||
|
|
||
| # copy this path to cfg | ||
| uv pip install -e . | ||
| export VCPKG_HOST_TRIPLET=arm64-osx-dynamic | ||
| ./vcpkg/bootstrap-vcpkg.sh | ||
| ./vcpkg/vcpkg install --host-triplet=$VCPKG_HOST_TRIPLET | ||
|
|
||
|
|
||
| uv pip install pybind11==3.0.0 --target=./pybind11 | ||
| export VCPKG_HOST_TRIPLET=arm64-osx-dynamic | ||
| export CMAKE_PREFIX_PATH=/Users/andyshapiro/dev/pycpp/pybind11/pybind11/share/cmake | ||
| export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) | ||
| uv pip install -e . && pytest | ||
| ``` |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -3,9 +3,9 @@ name = "demo" | |
| dynamic = ["version"] | ||
| license = "MIT" | ||
| authors = [ | ||
| {name = "Andy Shapiro", email = "[email protected]"}, | ||
| {name = "Andy Shapiro", email = "[email protected]"}, | ||
| ] | ||
| requires-python = ">=3.11" | ||
| requires-python = ">=3.13" | ||
| dependencies = [ | ||
| "numpy", | ||
| "pytest", | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -eo pipefail | ||
|
|
||
| if [ "${RUNNER_OS}" = "Linux" ]; then | ||
| yum install -y zip | ||
| fi | ||
|
|
||
| echo $VCPKG_HOST_TRIPLET | ||
| ./vcpkg/bootstrap-vcpkg.sh | ||
| ./vcpkg/vcpkg install --host-triplet=$VCPKG_HOST_TRIPLET | ||
|
|
||
| pip install pybind11==3.0.0 --target=./pybind11 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "name": "demo", | ||
| "version-string": "0.0.1", | ||
| "dependencies": [ | ||
| {"name": "gsl"}, | ||
| {"name": "eigen3"}, | ||
| {"name": "nlopt"} | ||
| ], | ||
| "builtin-baseline": "c9c17dcea3016bc241df0422e82b8aea212dcb93", | ||
| "overrides": [ | ||
| { "name": "gsl", "version": "2.8#1"}, | ||
| { "name": "eigen3", "version": "3.4.0#5"}, | ||
| { "name": "nlopt", "version": "2.10.0"} | ||
| ] | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.