File tree Expand file tree Collapse file tree 4 files changed +34
-5
lines changed Expand file tree Collapse file tree 4 files changed +34
-5
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ defaults:
26
26
jobs :
27
27
28
28
generate-matrix :
29
- uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
29
+ uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.5
30
30
with :
31
31
package-type : wheel
32
32
os : linux
33
33
test-infra-repository : pytorch/test-infra
34
- test-infra-ref : main
34
+ test-infra-ref : release/2.5
35
35
with-xpu : disable
36
36
with-rocm : disable
37
37
with-cuda : disable
@@ -42,14 +42,15 @@ jobs:
42
42
strategy :
43
43
fail-fast : false
44
44
name : Build and Upload Linux wheel
45
- uses : pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
45
+ uses : pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.5
46
46
with :
47
47
repository : pytorch-labs/torchvision-extra-decoders
48
48
ref : " "
49
49
test-infra-repository : pytorch/test-infra
50
- test-infra-ref : main
50
+ test-infra-ref : release/2.5
51
51
build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
52
52
pre-script : packaging/pre_build_script.sh
53
53
post-script : packaging/post_build_script.sh
54
+ smoke-test-script : packaging/fake_smoke_test.py
54
55
package-name : torchvision_extra_decoders
55
56
trigger-event : ${{ github.event_name }}
Original file line number Diff line number Diff line change
1
+ # This is a fake smoke test that runs on the test-infra instances after we build
2
+ # a wheel.
3
+
4
+ print ("Success" )
Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
4
5
- old=" linux_x86_64"
5
+ ls dist
6
+ wheel_path=` find dist -type f -name " *.whl" `
7
+
8
+ echo Found $wheel_path
9
+
10
+
11
+ # Put all the .so files we want to ship with the wheels within the lib_to_bundle
12
+ # dir. Maybe it's enough to LD_LIBRARY_PATH $CONDA_PREFIX/lib but I fear this
13
+ # might include some un-desired libc or libcxx so files?
14
+ mkdir libs_to_bundle
15
+ for f in ` find $CONDA_PREFIX /lib | grep -e libavif.so -e libdav1d.so -e librav1e.so -e libSvtAv1Enc.so -e libaom.so -e libheif.so -e libx265.so -e libde265.so` ; do cp $f libs_to_bundle; done
16
+ echo ` ls libs_to_bundle`
17
+ export LD_LIBRARY_PATH=" $PWD /libs_to_bundle:$LD_LIBRARY_PATH "
18
+
19
+ ${CONDA_RUN} auditwheel -v repair --plat manylinux_2_34_x86_64 $wheel_path --exclude libtorch_python.so --exclude libc10.so --exclude libtorch.so --exclude libtorch_cpu.so --wheel-dir dist
20
+
21
+ # mv original wheel to a different dir, the 'repaired' wheel outputed by
22
+ # auditwheel is still in dist/
23
+ mkdir original_wheel
24
+ mv $wheel_path original_wheel/
25
+
26
+
27
+ # This is absolutely disgusting.
28
+ old=" manylinux_2_34_x86_64"
6
29
new=" manylinux_2_17_x86_64.manylinux2014_x86_64"
7
30
echo " Replacing ${old} with ${new} in wheel name"
8
31
mv dist/* ${old} * .whl $( echo dist/* ${old} * .whl | sed " s/${old} /${new} /" )
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ pip install auditwheel
3
4
conda install libavif libheif -c conda-forge -yq
You can’t perform that action at this time.
0 commit comments