Commit 9223811 1 parent 1809c03 commit 9223811 Copy full SHA for 9223811
File tree 2 files changed +22
-14
lines changed
2 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,22 @@ pip install -v -e .
33
33
34
34
## Package Python Release Builds
35
35
36
- ``` bash
37
- # Build shortfin.*.whl into the dist/ directory
38
- # e.g. `shortfin-0.9-cp312-cp312-linux_x86_64.whl`
39
- python3 -m pip wheel -v -w dist .
36
+ * To build wheels for Linux using a manylinux Docker container:
40
37
41
- # Install the built wheel.
42
- python3 -m pip install dist/* .whl
43
- ```
38
+ ``` bash
39
+ sudo ./build_tools/build_linux_package.sh
40
+ ```
41
+
42
+ * To build a wheel for your host OS/arch manually:
43
+
44
+ ` ` ` bash
45
+ # Build shortfin.*.whl into the dist/ directory
46
+ # e.g. `shortfin-0.9-cp312-cp312-linux_x86_64.whl`
47
+ python3 -m pip wheel -v -w dist .
44
48
45
- TODO: helper script to build under manylinux using Docker
49
+ # Install the built wheel.
50
+ python3 -m pip install dist/* .whl
51
+ ` ` `
46
52
47
53
# # Python Dev Builds
48
54
Original file line number Diff line number Diff line change 14
14
# sudo ./build_tools/build_linux_package.sh
15
15
#
16
16
# Build specific Python versions to custom directory:
17
- # OVERRIDE_PYTHON_VERSIONS="cp312-cp312 cp313-313 " \
17
+ # OVERRIDE_PYTHON_VERSIONS="cp312-cp312 cp313-cp313 " \
18
18
# OUTPUT_DIR="/tmp/wheelhouse" \
19
- # sudo ./build_tools/build_linux_package.sh
19
+ # sudo -E ./build_tools/build_linux_package.sh
20
20
#
21
21
# Valid Python versions match a subdirectory under /opt/python in the docker
22
22
# image. Typically:
@@ -35,10 +35,12 @@ REPO_ROOT="$(cd "$THIS_DIR"/../../ && pwd)"
35
35
SCRIPT_NAME=" $( basename $0 ) "
36
36
ARCH=" $( uname -m) "
37
37
38
- # TODO: update to manylinux_2_28, 2014 is being used by torch-mlir
39
- # MANYLINUX_DOCKER_IMAGE="${MANYLINUX_DOCKER_IMAGE:-"ghcr.io/nod-ai/manylinux_x86_64:main@sha256:facedb71df670016e74e646d71e869e6fff70d4cdbaa6634d4d0a10d6e174399" }')}"
40
- MANYLINUX_DOCKER_IMAGE=" ${MANYLINUX_DOCKER_IMAGE:- quay.io/ pypa/ manylinux2014_${ARCH} @ sha256: 2ace4b4f06a726d270821cb4993caeed3aacdaa54801e9f13be8fbe96077f4dc} "
41
- PYTHON_VERSIONS=" ${OVERRIDE_PYTHON_VERSIONS:- cp312-cp312} "
38
+ # TODO(#130): Update to manylinux_2_28, upstream or a fork
39
+ # * upstream uses a version of gcc that has build warnings/errors
40
+ # * https://github.com/nod-ai/base-docker-images is a bit out of date but can include a recent clang
41
+ # MANYLINUX_DOCKER_IMAGE="${MANYLINUX_DOCKER_IMAGE:-quay.io/pypa/manylinux_2_28_${ARCH}:latest}"
42
+ MANYLINUX_DOCKER_IMAGE=" ${MANYLINUX_DOCKER_IMAGE:- quay.io/ pypa/ manylinux2014_${ARCH} : latest} "
43
+ PYTHON_VERSIONS=" ${OVERRIDE_PYTHON_VERSIONS:- cp312-cp312 cp313-cp313} "
42
44
OUTPUT_DIR=" ${OUTPUT_DIR:- ${THIS_DIR} / wheelhouse} "
43
45
44
46
function run_on_host() {
You can’t perform that action at this time.
0 commit comments