File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 50
50
test-infra-ref : main
51
51
build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
52
52
pre-script : packaging/pre_build_script.sh
53
+ post-script : packaging/post_build_script.sh
53
54
package-name : torchvision_extra_decoders
54
55
trigger-event : ${{ github.event_name }}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -ex
4
+
5
+ old=" linux_x86_64"
6
+ new=" manylinux_2_17_x86_64.manylinux2014_x86_64"
7
+ echo " Replacing ${old} with ${new} in wheel name"
8
+ mv dist/* ${old} * .whl $( echo dist/* ${old} * .whl | sed " s/${old} /${new} /" )
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ def get_and_write_version():
35
35
elif sha != "Unknown" :
36
36
version += "+" + sha [:7 ]
37
37
38
+ version = version .replace ("+cpu" , "" )
39
+
38
40
with open (ROOT_DIR / "torchvision_extra_decoders/version.py" , "w" ) as f :
39
41
f .write (f"__version__ = '{ version } '\n " )
40
42
f .write (f"git_version = { repr (sha )} \n " )
You can’t perform that action at this time.
0 commit comments