<commit_before># This image takes the same command-line arguments as build-wheel.py, except for `--ndk`, which
# should be omitted.
#
# Each run will generate one wheel file in the directory /root/pypi/dist, which is structured
# as a PyPI respository. If a package requires other packages to build against, then this
# directory must be supplied as a mount or a volume which already contains those packages'
# wheel files.

FROM chaquopy-target

RUN wget -q -O - https://bootstrap.pypa.io/get-pip.py | python2.7
RUN wget -q -O - https://bootstrap.pypa.io/get-pip.py | python3.6

# Miscellaneous build tools
#
# The Python `-dev` packages are required for some packages (e.g. OpenCV and TensorFlow) which
# need to build things for the host Python.
RUN apt-get update && \
    apt-get -y install autoconf cmake git python2.7-dev && \
    wget https://github.com/chriskuehl/python3.6-debian-stretch/releases/download/v3.6.3-1-deb9u1/{python3.6-dev,libpython3.6-dev}_3.6.3-1.deb9u1_amd64.deb && \
    dpkg -i *.deb && \
    rm *.deb && \
    ln -s python2.7 /usr/bin/python && \
    ln -s python2.7 /usr/bin/python2 && \
    ln -s python3.6 /usr/bin/python3

# Bazel (for TensorFlow)
RUN apt-get update && \
    apt-get -y install pkg-config zip g++ zlib1g-dev unzip && \
    version=0.16.1 && \
    filename=bazel-$version-installer-linux-x86_64.sh && \
    wget https://github.com/bazelbuild/bazel/releases/download/$version/$filename && \
    chmod +x $filename && \
    ./$filename && \
    rm $filename

# patchelf (see comment in packages/chaquopy-libgfortran/build.sh)
RUN commit=6bfcafbba8d89e44f9ac9582493b4f27d9d8c369 && \
    wget -q -O - https://github.com/NixOS/patchelf/archive/$commit.tar.gz | tar -xzf - && \
    ( cd patchelf-$commit && ./bootstrap.sh && ./configure && make && make install ) && \
    rm -r patchelf-$commit

COPY requirements.txt pypi/
RUN pip3.6 install -r pypi/requirements.txt

COPY . pypi/

ENV LC_ALL="C.UTF-8"
ENTRYPOINT ["python3.6", "pypi/build-wheel.py", "--ndk", "crystax"]<commit_msg>Remove Python 2.7 from pypi/Dockerfile<commit_after># This image takes the same command-line arguments as build-wheel.py, except for `--ndk`, which
# should be omitted.
#
# Each run will generate one wheel file in the directory /root/pypi/dist, which is structured
# as a PyPI respository. If a package requires other packages to build against, then this
# directory must be supplied as a mount or a volume which already contains those packages'
# wheel files.

FROM chaquopy-target

RUN wget -q -O - https://bootstrap.pypa.io/get-pip.py | python3.6

# Miscellaneous build tools
#
# The Python `-dev` packages are required for some packages (e.g. OpenCV and TensorFlow) which
# need to build things for the host Python.
RUN apt-get update && \
    apt-get -y install autoconf cmake git && \
    wget https://github.com/chriskuehl/python3.6-debian-stretch/releases/download/v3.6.3-1-deb9u1/{python3.6-dev,libpython3.6-dev}_3.6.3-1.deb9u1_amd64.deb && \
    apt install -y ./*.deb && \
    rm *.deb && \
    ln -s python3.6 /usr/bin/python && \
    ln -s python3.6 /usr/bin/python3

# Bazel (for TensorFlow)
RUN apt-get update && \
    apt-get -y install pkg-config zip g++ zlib1g-dev unzip && \
    version=0.16.1 && \
    filename=bazel-$version-installer-linux-x86_64.sh && \
    wget https://github.com/bazelbuild/bazel/releases/download/$version/$filename && \
    chmod +x $filename && \
    ./$filename && \
    rm $filename

# patchelf (see comment in packages/chaquopy-libgfortran/build.sh)
RUN commit=6bfcafbba8d<PASSWORD>b4f27d9d8c<PASSWORD> && \
    wget -q -O - https://github.com/NixOS/patchelf/archive/$commit.tar.gz | tar -xzf - && \
    ( cd patchelf-$commit && ./bootstrap.sh && ./configure && make && make install ) && \
    rm -r patchelf-$commit

COPY requirements.txt pypi/
RUN pip3.6 install -r pypi/requirements.txt

COPY . pypi/

ENV LC_ALL="C.UTF-8"
ENTRYPOINT ["python3.6", "pypi/build-wheel.py", "--ndk", "crystax"]
{'fraction_non_alphanumeric': 0.14084152179390275, 'fraction_numerical': 0.030234315948601664, 'mean_word_length': 3.1012396694214877, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '623875', 'n_tokens_mistral': 1490, 'n_tokens_neox': 1410, 'n_words': 383}