feat: support python 3.7

This commit is contained in:
youben11
2022-07-06 11:05:34 +01:00
committed by Ayoub Benaissa
parent 261e59d2b4
commit 5668e447e7
3 changed files with 10 additions and 2 deletions

View File

@@ -440,8 +440,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [38, 39, 310]
python: [37, 38, 39, 310]
outputs:
python-package-name-linux-py37: ${{ steps.build-wheel-linux.outputs.ASSET_NAME_PY37 }}
python-package-name-linux-py38: ${{ steps.build-wheel-linux.outputs.ASSET_NAME_PY38 }}
python-package-name-linux-py39: ${{ steps.build-wheel-linux.outputs.ASSET_NAME_PY39 }}
python-package-name-linux-py310: ${{ steps.build-wheel-linux.outputs.ASSET_NAME_PY310 }}
@@ -641,6 +642,8 @@ jobs:
strategy:
matrix:
include:
- python: '3.7'
filename-index: 'python-package-name-linux-py37'
- python: '3.8'
filename-index: 'python-package-name-linux-py38'
- python: '3.9'

View File

@@ -3,7 +3,7 @@ FROM quay.io/pypa/manylinux_2_24_x86_64
RUN apt-get update
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y build-essential ninja-build
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
# Set the python path. Options: [cp38-cp38, cp39-cp39, cp310-cp310]
# Set the python path. Options: [cp37-cp37m, cp38-cp38, cp39-cp39, cp310-cp310]
ARG python_tag=cp38-cp38
# Install python deps
RUN /opt/python/${python_tag}/bin/pip install numpy pybind11==2.8 PyYAML

View File

@@ -240,6 +240,10 @@ define build_image_and_copy_wheels
docker container run --rm -v ${PWD}/../wheels:/wheels_volume concrete-compiler-manylinux:$(1) cp -r /wheels/. /wheels_volume/.
endef
package_py37: update_python_version
$(call build_image_and_copy_wheels,cp37-cp37m)
package_py38: update_python_version
$(call build_image_and_copy_wheels,cp38-cp38)
@@ -285,6 +289,7 @@ python_lint:
add-deps \
file-check \
not \
package_py37 \
package_py38 \
package_py39 \
package_py310 \