Comment 10 for bug 1891416

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (master)

Reviewed: https://review.opendev.org/c/starlingx/root/+/785508
Committed: https://opendev.org/starlingx/root/commit/2bdac9ac3b09332604919c8e7d39c1676c106ae5
Submitter: "Zuul (22348)"
Branch: master

commit 2bdac9ac3b09332604919c8e7d39c1676c106ae5
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
    - 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

    - build-docker-images/docker-image-build-centos-dev.cfg
    - build-docker-images/docker-image-build-centos-stable.cfg
      Removed

    Change-Id: I2ca444f258a537ed2ba6f68206d32cf59e1802b4
    Partial-Bug: 1891416
    Signed-off-by: Davlet Panech <email address hidden>