-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into onnxruntime
- Loading branch information
Showing
14 changed files
with
536 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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 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,24 @@ | ||
FROM ghcr.io/bjia56/armv7l-wheel-builder:main | ||
ARG PYTHON_VERSION | ||
ARG VERSION | ||
ARG OUTPUT_DIR | ||
|
||
ENV CC=/opt/rh/devtoolset-10/root/usr/bin/gcc | ||
ENV FC=/opt/rh/devtoolset-10/root/usr/bin/gfortran5 | ||
ENV CXX=/opt/rh/devtoolset-10/root/usr/bin/g++ | ||
ENV LD=/opt/rh/devtoolset-10/root/usr/bin/ld | ||
ENV PATH=/opt/rh/devtoolset-10/root/usr/bin:$PATH | ||
|
||
WORKDIR / | ||
RUN select_python ${PYTHON_VERSION} | ||
RUN python3 -m pip install numpy --extra-index-url https://bjia56.github.io/armv7l-wheels/ --prefer-binary | ||
RUN mkdir lap | ||
WORKDIR lap | ||
RUN python3 -m pip install lap==${VERSION} | ||
RUN cp $(pip cache list lap --format=abspath) . | ||
RUN auditwheel repair lap-*.whl && \ | ||
pip3 install ./wheelhouse/lap-*manylinux*armv7l.whl --extra-index-url https://bjia56.github.io/armv7l-wheels/ --prefer-binary && \ | ||
python3 -c "import lap; print(lap)" | ||
|
||
RUN mkdir -p ${OUTPUT_DIR} && \ | ||
cp ./wheelhouse/lap-*manylinux*armv7l.whl ${OUTPUT_DIR} |
This file contains 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 @@ | ||
strategy: dockerfile | ||
source: | ||
- file: ./Dockerfile | ||
|
||
python: | ||
versions: | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
|
||
package: | ||
versions: latest |
This file contains 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,22 @@ | ||
FROM ghcr.io/bjia56/armv7l-wheel-builder:main | ||
ARG PYTHON_VERSION | ||
ARG VERSION | ||
ARG OUTPUT_DIR | ||
|
||
COPY . /repo | ||
|
||
ENV CC=/opt/rh/devtoolset-10/root/usr/bin/gcc | ||
ENV FC=/opt/rh/devtoolset-10/root/usr/bin/gfortran5 | ||
ENV CXX=/opt/rh/devtoolset-10/root/usr/bin/g++ | ||
ENV LD=/opt/rh/devtoolset-10/root/usr/bin/ld | ||
ENV PATH=/opt/rh/devtoolset-10/root/usr/bin:$PATH | ||
|
||
WORKDIR / | ||
RUN select_python ${PYTHON_VERSION} | ||
RUN python3 -m pip install numpy --extra-index-url https://bjia56.github.io/armv7l-wheels/ --prefer-binary | ||
RUN mkdir lapx | ||
WORKDIR lapx | ||
RUN /repo/armv7l_build_wheels.sh ${PYTHON_VERSION} ${VERSION} | ||
|
||
RUN mkdir -p ${OUTPUT_DIR} && \ | ||
cp build${PYTHON_VERSION}/wheelhouse/lapx*manylinux*armv7l.whl ${OUTPUT_DIR} |
This file contains 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,31 @@ | ||
#!/bin/bash | ||
|
||
PYTHON3_VERSION=$1 | ||
PACKAGE_VERSION=$2 | ||
|
||
set -e | ||
|
||
build_wheel() ( | ||
PY_VER=$1 | ||
VER=$2 | ||
mkdir build$PY_VER | ||
cd build$PY_VER | ||
pip$PY_VER wheel --no-deps lapx==$VER | ||
) | ||
|
||
test_wheel() ( | ||
PY_VER=$1 | ||
cd build$PY_VER | ||
pip$PY_VER install wheelhouse/lapx*manylinux*armv7l.whl | ||
python$PY_VER -c "import lap; print(lap)" | ||
) | ||
|
||
repair_wheel() ( | ||
PY_VER=$1 | ||
cd build$PY_VER | ||
auditwheel repair lapx*armv7l.whl | ||
) | ||
|
||
build_wheel $PYTHON3_VERSION $PACKAGE_VERSION | ||
repair_wheel $PYTHON3_VERSION | ||
test_wheel $PYTHON3_VERSION |
This file contains 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 @@ | ||
strategy: dockerfile | ||
source: | ||
- file: ./Dockerfile | ||
|
||
python: | ||
versions: | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
|
||
package: | ||
versions: latest |
This file contains 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,11 @@ | ||
strategy: pypi | ||
|
||
python: | ||
versions: | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
|
||
package: | ||
versions: latest |
This file contains 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 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 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 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,81 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<!-- Required meta tags --> | ||
<meta charset="utf-8"/> | ||
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport"/> | ||
<!-- Skeleton CSS --> | ||
<link crossorigin="anonymous" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" rel="stylesheet"/> | ||
<!-- Font --> | ||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap" rel="stylesheet" type="text/css"/> | ||
<style> | ||
body { font-family: "Montserrat"; } | ||
code { | ||
font-size: 100%; | ||
display: inline-block !important; | ||
font-size: 1.4rem; } | ||
.header { | ||
margin-top: 15rem; | ||
font-size: 3.6rem; | ||
font-weight: 400; | ||
letter-spacing: -.1rem; } | ||
.text-header { | ||
text-transform: uppercase; | ||
font-size: 1.4rem; | ||
letter-spacing: .2rem; | ||
font-weight: 600; } | ||
.version { | ||
font-size: 2.3rem; | ||
font-style: italic; | ||
font-weight: 300; } | ||
.elem { margin: 1rem 0rem; } | ||
</style> | ||
<title> | ||
PyPI - Python Wheels for armv7l | ||
</title> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"> | ||
</script> | ||
<script> | ||
function annotateDownloadCount(releaseTag, anchorElement) { | ||
fetch("https://api.github.com/repos/bjia56/armv7l-wheels/releases/tags/" + releaseTag) | ||
.then(async resp => { | ||
let release = await resp.json(); | ||
let downloadCount = release.assets[0].download_count; | ||
anchorElement.innerText = anchorElement.innerText + " (" + downloadCount + " downloads)"; | ||
}) | ||
.catch(e => console.log(e)); | ||
} | ||
|
||
function annotateAll() { | ||
Array.from(document.links).forEach(anchor => annotateDownloadCount(anchor.href.split("/")[7], anchor)); | ||
} | ||
|
||
$(document).ready(annotateAll); | ||
</script> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<section class="header"> | ||
lap | ||
</section> | ||
<pre><code>pip install lap --extra-index-url https://bjia56.github.io/armv7l-wheels/</code></pre> | ||
<br/> | ||
<a href="https://github.com/bjia56/armv7l-wheels/releases/download/lap-0.4.0-cpython3.7/lap-0.4.0-cp37-cp37m-manylinux_2_17_armv7l.manylinux2014_armv7l.whl"> | ||
lap-0.4.0-cp37-cp37m-manylinux_2_17_armv7l.manylinux2014_armv7l.whl | ||
</a> | ||
<br/> | ||
<a href="https://github.com/bjia56/armv7l-wheels/releases/download/lap-0.4.0-cpython3.8/lap-0.4.0-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl"> | ||
lap-0.4.0-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl | ||
</a> | ||
<br/> | ||
<a href="https://github.com/bjia56/armv7l-wheels/releases/download/lap-0.4.0-cpython3.9/lap-0.4.0-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl"> | ||
lap-0.4.0-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl | ||
</a> | ||
<br/> | ||
<a href="https://github.com/bjia56/armv7l-wheels/releases/download/lap-0.4.0-cpython3.10/lap-0.4.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl"> | ||
lap-0.4.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl | ||
</a> | ||
<hr/> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.