Skip to content

fix: Kokoro builds with missing pyaudio package #552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .kokoro/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ RUN apt update \
libxslt1-dev \
openssl \
portaudio19-dev \
python-pyaudio \
zlib1g-dev \
build-essential \
&& apt clean

###################### Install python 3.7.12
###################### Install python 3.12.2

# Download python 3.7.12
RUN wget https://www.python.org/ftp/python/3.7.12/Python-3.7.12.tgz
# Download python 3.12.2
RUN wget https://www.python.org/ftp/python/3.12.2/Python-3.12.2.tgz

# Extract files
RUN tar -xvf Python-3.7.12.tgz
RUN tar -xvf Python-3.12.2.tgz

# Install python 3.7.12
RUN ./Python-3.7.12/configure --enable-optimizations
# Install python 3.12.2
RUN ./Python-3.12.2/configure --enable-optimizations
RUN make altinstall

###################### Check python version
Expand All @@ -53,7 +53,7 @@ RUN python --version
RUN which python

# Setup Cloud SDK
ENV CLOUD_SDK_VERSION 369.0.0
ENV CLOUD_SDK_VERSION 464.0.0
# Use system python for cloud sdk.
ENV CLOUDSDK_PYTHON /usr/bin/python
RUN wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-$CLOUD_SDK_VERSION-linux-x86_64.tar.gz
Expand All @@ -64,7 +64,12 @@ ENV PATH /google-cloud-sdk/bin:$PATH
# Setup the user profile for pip
ENV PATH ~/.local/bin:/root/.local/bin:$PATH

# Install the current version of pyaudio.
RUN python3 -m pip install --user --no-cache-dir pyaudio

# Install the current version of nox.
RUN python3 -m pip install --user --no-cache-dir nox==2022.1.7



CMD ["nox"]