Skip to content

Commit 33c8790

Browse files
committed
Remove explicit pybind11 install from build.sh
Signed-off-by: Nick Avramoussis <4256455+Idclip@users.noreply.github.com>
1 parent 545737e commit 33c8790

File tree

7 files changed

+26
-21
lines changed

7 files changed

+26
-21
lines changed

.github/workflows/ax.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ jobs:
7171
fail-fast: false
7272
steps:
7373
- uses: actions/checkout@v3
74+
- name: pybind11
75+
#if: contains(matrix.config.image, '2023') == false
76+
run: ./ci/install_pybind11.sh 2.10.0
7477
- name: timestamp
7578
id: timestamp
7679
shell: bash

.github/workflows/build.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ concurrency:
4848
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
4949
cancel-in-progress: true
5050

51+
defaults:
52+
run:
53+
shell: bash
54+
5155
jobs:
5256
linux-vfx:
5357
# VFX platform jobs. These are run on the appropriate CentOS images from
@@ -85,9 +89,11 @@ jobs:
8589
fail-fast: false
8690
steps:
8791
- uses: actions/checkout@v3
92+
- name: pybind11
93+
#if: contains(matrix.config.image, '2023') == false
94+
run: ./ci/install_pybind11.sh 2.10.0
8895
- name: timestamp
8996
id: timestamp
90-
shell: bash
9197
run: echo "::set-output name=timestamp::`date -u +'%Y-%m-%dT%H:%M:%SZ'`"
9298
- name: ccache
9399
# don't use ccache for debug builds
@@ -118,7 +124,6 @@ jobs:
118124
# Keep ccache light by stripping out any caches not accessed in the last day
119125
- name: ccache_clean
120126
if: matrix.config.build == 'Release'
121-
shell: bash
122127
run: ccache --evict-older-than 1d
123128

124129
windows:
@@ -149,15 +154,14 @@ jobs:
149154
steps:
150155
- uses: actions/checkout@v3
151156
- name: path
157+
shell: pwsh
152158
run: |
153159
# note: system path must be modified in a previous step to it's use
154160
echo "$Env:VCPKG_INSTALLATION_ROOT\installed\${{ matrix.config.vc }}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
155161
echo "${{github.workspace}}\build\openvdb\openvdb\${{ matrix.config.build }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
156162
- name: install
157-
shell: bash
158163
run: ./ci/install_windows.sh
159164
- name: build
160-
shell: bash
161165
run: >
162166
./ci/build.sh -v
163167
--config=${{ matrix.config.build }}
@@ -171,11 +175,9 @@ jobs:
171175
-DCMAKE_TOOLCHAIN_FILE=\"${VCPKG_INSTALLATION_ROOT}\\scripts\\buildsystems\\vcpkg.cmake\"
172176
\'
173177
- name: size
174-
shell: bash
175178
# Print the build directy size (monitor if we're hitting runner limits)
176179
run: du -h build
177180
- name: test
178-
shell: bash
179181
# Always run tests on weekly builds but skip Debug on commits as they take a while.
180182
# https://github.community/t/distinct-job-for-each-schedule/17811/2
181183
if: contains(github.event.schedule, '0 7 * * 1') || matrix.config.build == 'Release'
@@ -192,14 +194,12 @@ jobs:
192194
steps:
193195
- uses: actions/checkout@v3
194196
- name: install
195-
shell: bash
196197
# brew boost-python3 installs a "Keg-only" version of python which is
197198
# not installed to PATH. We must manually provide the location of the
198199
# required python installation to CMake through a hint variable which
199200
# is exported in install_macos.sh
200201
run: ./ci/install_macos.sh
201202
- name: build
202-
shell: bash
203203
# Also need to disable compiler warnings for ABI 6 and above due to
204204
# the version of clang installed
205205
run: >
@@ -208,5 +208,4 @@ jobs:
208208
--components=\"core,python,bin,view,render,test\"
209209
--cargs=\"-DOPENVDB_CXX_STRICT=OFF -DOPENVDB_ABI_VERSION_NUMBER=10 -DOPENVDB_SIMD=SSE42\"
210210
- name: test
211-
shell: bash
212211
run: cd build && ctest -V

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
- uses: actions/checkout@v3
4646
- name: install_doxygen
4747
run: ./ci/install_doxygen.sh 1_8_11
48+
- name: pybind11
49+
#if: contains(matrix.config.image, '2023') == false
50+
run: ./ci/install_pybind11.sh 2.10.0
4851
# - name: install_epydoc
4952
# run: pip install epydoc
5053
- name: install_latex

.github/workflows/houdini.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ jobs:
7777
fail-fast: false
7878
steps:
7979
- uses: actions/checkout@v3
80+
- name: pybind11
81+
#if: contains(matrix.config.image, '2023') == false
82+
run: ./ci/install_pybind11.sh 2.10.0
8083
- name: timestamp
8184
id: timestamp
8285
shell: bash

.github/workflows/weekly.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ jobs:
119119
fail-fast: false
120120
steps:
121121
- uses: actions/checkout@v3
122+
- name: pybind11
123+
#if: contains(container.image, '2023') == false
124+
run: ./ci/install_pybind11.sh 2.10.0
122125
- name: build
123126
run: >
124127
./ci/build.sh -v
@@ -191,6 +194,9 @@ jobs:
191194
fail-fast: false
192195
steps:
193196
- uses: actions/checkout@v3
197+
- name: pybind11
198+
#f: contains(matrix.config.image, '2023') == false
199+
run: ./ci/install_pybind11.sh 2.10.0
194200
- name: build
195201
run: >
196202
./ci/build.sh -v
@@ -239,7 +245,7 @@ jobs:
239245
#- { cxx: 'clang++', build: 'Release', llvm: '16' } - not supported yet
240246
fail-fast: false
241247
steps:
242-
- uses: actions/checkout@v2
248+
- uses: actions/checkout@v3
243249
- name: install_deps
244250
run: ./ci/install_macos_ax.sh ${{ matrix.config.llvm }}
245251
- name: build
@@ -310,6 +316,7 @@ jobs:
310316
${{ matrix.config.cmake }}
311317
\'
312318
- name: runtime_path
319+
shell: pwsh
313320
run: |
314321
# note: system path must be modified in a previous step to it's use
315322
echo "$Env:VCPKG_INSTALLATION_ROOT\installed\${{ matrix.config.vc }}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

ci/build.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,6 @@ done
145145

146146
################################################
147147

148-
###### TEMPORARY CHANGE: Install pybind11 2.10.0 as it's not available on the linux docker images yet
149-
if [ $(uname) == "Linux" ]; then
150-
if [ ! -f "/usr/local/include/pybind11/pybind11.h" ]; then
151-
$CI_DIR/install_pybind11.sh 2.10.0
152-
fi
153-
fi
154-
###### TEMPORARY CHANGE: always install pybind11 2.10.0 as it's not available on the docker images yet
155-
156-
################################################
157-
158148
# github actions runners have 8 threads
159149
# https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
160150
export CMAKE_BUILD_PARALLEL_LEVEL=${PARMS[-j]}

openvdb/openvdb/python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ endif()
107107

108108
# Make sure find_package(Python) is only ever invoked once with all required components
109109
find_package(Python COMPONENTS ${OPENVDB_PYTHON_REQUIRED_COMPONENTS})
110-
find_package(pybind11 ${MINIMUM_PYBIND_VERSION} REQUIRED)
110+
find_package(pybind11 ${MINIMUM_PYBIND_VERSION} CONFIG REQUIRED)
111111

112112
openvdb_check_python_version(Python::Module
113113
"${Python_VERSION}"

0 commit comments

Comments
 (0)