Current build process can't handle python2-based projects because we
only build wheels based on Ussury (python3). This patch fixes this.
- build-wheels/docker/stable-wheels-py2.cfg
- build-wheels/docker/dev-wheels-py2.cfg
Resurrected original cfg files from commit
aa317323716a7f5bb844bb8867eeb8b01313b51e (before upgrade to Ussuri)
and saved with -py2 suffix
- build-wheels/docker/centos-dockerfile
Install python2 packages in addition to python3
- build-wheels/docker/docker-build-wheel.sh
* Build with python3 or python2 depending on the environment
* Suppress status message at the end because its better handled by the
parent script (build-base-wheels.sh)
- build-wheels/build-base-wheels.sh
* Generate 2 wheel directories, "base" and "base-py2" at each
invocation
* Use the same builder image and docker script (with different environment) to generate wheels based on different cfg files.
Save python3 wheels in "base" and python2 wheels in "base-py2"
- build-wheels/build-wheel-tarball.sh
* New command-line parameter --python2: generate *-wheels-py2.tar
from "base-py2"
* Use ussuri or train constraints depending on the presence of
--python2
- build-docker-images/build-stx-images.sh
* Use *-wheels-py2.tar for python2/loci projects
* Fail early on missing --wheels/--wheels-py2
* Fail if multiple projects use the same LABEL
* Remove support for config files
Reviewed: https:/ /review. opendev. org/c/starlingx /root/+ /785508 /opendev. org/starlingx/ root/commit/ 2bdac9ac3b09332 604919c8e7d39c1 676c106ae5
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 2bdac9ac3b09332 604919c8e7d39c1 676c106ae5
Author: Davlet Panech <email address hidden>
Date: Thu Apr 8 15:17:44 2021 -0400
Build and use py2 wheels with py2 projects
Current build process can't handle python2-based projects because we
only build wheels based on Ussury (python3). This patch fixes this.
- build-wheels/ docker/ stable- wheels- py2.cfg docker/ dev-wheels- py2.cfg 16a7f5bb844bb88 67eeb8b01313b51 e (before upgrade to Ussuri)
- build-wheels/
Resurrected original cfg files from commit
aa3173237
and saved with -py2 suffix
- build-wheels/ docker/ centos- dockerfile
Install python2 packages in addition to python3
- build-wheels/ docker/ docker- build-wheel. sh base-wheels. sh)
* Build with python3 or python2 depending on the environment
* Suppress status message at the end because its better handled by the
parent script (build-
- build-wheels/ build-base- wheels. sh
environment) to generate wheels based on different cfg files.
* Generate 2 wheel directories, "base" and "base-py2" at each
invocation
* Use the same builder image and docker script (with different
Save python3 wheels in "base" and python2 wheels in "base-py2"
- build-wheels/ build-wheel- tarball. sh
* New command-line parameter --python2: generate *-wheels-py2.tar
from "base-py2"
* Use ussuri or train constraints depending on the presence of
--python2
- build-docker- images/ build-stx- images. sh --wheels- py2
* Use *-wheels-py2.tar for python2/loci projects
* Fail early on missing --wheels/
* Fail if multiple projects use the same LABEL
* Remove support for config files
- build-docker- images/ docker- image-build- centos- dev.cfg images/ docker- image-build- centos- stable. cfg
- build-docker-
Removed
Change-Id: I2ca444f258a537 ed2ba6f68206d32 cf59e1802b4
Partial-Bug: 1891416
Signed-off-by: Davlet Panech <email address hidden>