-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into cvs_158017
- Loading branch information
Showing
4,214 changed files
with
106,410 additions
and
244,625 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,48 @@ | ||
name: 'Find and install OpenVINO Python wheels' | ||
description: 'Finds the OpenVINO Python wheels suitable for the "python3" executable and installs them' | ||
inputs: | ||
wheels-dir-path: | ||
description: 'Path to the directory in which wheels are located' | ||
required: true | ||
wheels-to-install: | ||
description: 'List of wheel names to install in the form of "openvino openvino_tokenizers"' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Install OpenVINO Python wheels (Windows) | ||
shell: pwsh | ||
if: runner.os == 'Windows' | ||
run: | | ||
# Get the Python version | ||
$pyVersion = python3 -c "import sys; print(f'{sys.version_info.major}{sys.version_info.minor}')" | ||
foreach ($wheel in $("${{ inputs.wheels-to-install }}" -split ' ')) { | ||
# Search for the python-specific wheel version and install it if exists | ||
$wheelPath = Get-ChildItem -Path ${{ inputs.wheels-dir-path }} -Filter "$wheel-*cp$pyVersion*.whl" | Select-Object -First 1 | ||
if ($wheelPath) { | ||
python3 -m pip install $wheelPath.FullName | ||
} else { | ||
# If the python-specific version does not exist, install by name only | ||
$wheelPathByName = Get-ChildItem -Path ${{ inputs.wheels-dir-path }} -Filter "$wheel-*.whl" | Select-Object -First 1 | ||
python3 -m pip install $wheelPathByName.FullName | ||
} | ||
} | ||
- name: Install OpenVINO Python wheels (Linux and macOS) | ||
shell: bash | ||
if: runner.os != 'Windows' | ||
run: | | ||
py_version=$(python3 -c "import sys; print(f'{sys.version_info.major}{sys.version_info.minor}')") | ||
for wheel in ${{ inputs.wheels-to-install }}; do | ||
echo "Installing the ${wheel} wheel" | ||
# Search for the python-specific wheel version and install it if exists | ||
wheel_path=$(find ${{ inputs.wheels-dir-path }} -name "$wheel-*cp$py_version*.whl") | ||
echo "Wheel path: ${wheel_path}" | ||
if [ -n "${wheel_path}" ]; then | ||
python3 -m pip install $wheel_path | ||
else | ||
# If the python-specific version does not exist, install by name only | ||
python3 -m pip install ${{ inputs.wheels-dir-path }}/$wheel-*.whl | ||
fi | ||
done |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
pr-27430 | ||
pr-25673 |
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,76 @@ | ||
ARG REGISTRY="docker.io" | ||
FROM ${REGISTRY}/library/debian:10.13 | ||
|
||
USER root | ||
|
||
# APT configuration | ||
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \ | ||
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \ | ||
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \ | ||
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf | ||
|
||
ENV DEBIAN_FRONTEND="noninteractive" \ | ||
TZ="Europe/London" | ||
|
||
RUN apt-get update && \ | ||
apt-get install \ | ||
git \ | ||
libc6-dev \ | ||
# parallel gzip | ||
pigz \ | ||
# Python | ||
python3 \ | ||
python3-pip \ | ||
python3-dev \ | ||
python3-venv \ | ||
python3-distutils \ | ||
# To build Python 3.10 from source | ||
build-essential \ | ||
libffi-dev \ | ||
libgdbm-dev \ | ||
libc6-dev \ | ||
libssl-dev \ | ||
zlib1g-dev \ | ||
libbz2-dev \ | ||
libreadline-dev \ | ||
libsqlite3-dev \ | ||
libncurses5-dev \ | ||
libncursesw5-dev \ | ||
xz-utils \ | ||
tk-dev \ | ||
libxml2-dev \ | ||
libxmlsec1-dev \ | ||
liblzma-dev \ | ||
wget \ | ||
curl \ | ||
&& \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install openvino dependencies | ||
ADD scripts/install_dependencies/install_openvino_dependencies.sh /install_openvino_dependencies.sh | ||
RUN chmod +x /install_openvino_dependencies.sh && \ | ||
/install_openvino_dependencies.sh && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Setup Python 3.10 | ||
RUN wget https://www.python.org/ftp/python/3.10.9/Python-3.10.9.tar.xz | ||
|
||
RUN tar -xf Python-3.10.9.tar.xz && \ | ||
cd Python-3.10.9 && \ | ||
./configure --enable-optimizations && \ | ||
make -j 8 && \ | ||
make altinstall | ||
|
||
# Setup pip | ||
ENV PIP_VERSION="24.0" | ||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ | ||
python3.10 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \ | ||
rm -f get-pip.py | ||
|
||
# Use Python 3.10 as default instead of Python 3.7 | ||
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build | ||
RUN python3.10 -m venv venv | ||
ENV PATH="/venv/bin:$PATH" | ||
|
||
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION} | ||
ENV PIP_INSTALL_PATH=/venv/lib/python3.10/site-packages |
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
52 changes: 52 additions & 0 deletions
52
.github/dockerfiles/ov_test/ubuntu_20_04_x64_py313/Dockerfile
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,52 @@ | ||
ARG REGISTRY="docker.io" | ||
FROM ${REGISTRY}/library/ubuntu:20.04 | ||
|
||
USER root | ||
|
||
# APT configuration | ||
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \ | ||
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \ | ||
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \ | ||
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf | ||
|
||
ENV DEBIAN_FRONTEND="noninteractive" \ | ||
TZ="Europe/London" | ||
|
||
RUN apt-get update && \ | ||
apt-get install software-properties-common && \ | ||
add-apt-repository --yes --no-update ppa:git-core/ppa && \ | ||
add-apt-repository --yes --no-update ppa:deadsnakes/ppa && \ | ||
apt-get update && \ | ||
apt-get install \ | ||
curl \ | ||
git \ | ||
gpg-agent \ | ||
tzdata \ | ||
# parallel gzip | ||
pigz \ | ||
# Python | ||
python3.13-dev \ | ||
python3.13-venv \ | ||
&& \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install openvino dependencies | ||
ADD scripts/install_dependencies/install_openvino_dependencies.sh /install_openvino_dependencies.sh | ||
RUN chmod +x /install_openvino_dependencies.sh && \ | ||
/install_openvino_dependencies.sh && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Setup pip | ||
ENV PIP_VERSION="24.0" | ||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ | ||
python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \ | ||
python3.13 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \ | ||
rm -f get-pip.py | ||
|
||
# Use Python 3.13 as default instead of Python 3.8 | ||
# Using venv here 'cause other methods to switch the default Python on Ubuntu 20 break both system and wheels build | ||
RUN python3.13 -m venv venv | ||
ENV PATH="/venv/bin:$PATH" | ||
|
||
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION} | ||
ENV PIP_INSTALL_PATH=/venv/lib/python3.13/site-packages |
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
Oops, something went wrong.