StarlingX 3.x branch fails to build wheels due to broken setuptools

Bug #1886963 reported by Davlet Panech
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Critical
Davlet Panech

Bug Description

Brief Description
-----------------

Wheels build fails to upgrade setuptools

Severity
--------
Critical

Steps to reproduce
------------------

run: build-tools/build-wheels/build-wheel-tarball.sh

Expected Behavior
-----------------
The build succeeds

Actual Behavior
---------------
"pip pip install --upgrade pip setuptools" fails

Reproducibility
---------------
Reproducible

Branch
------
r/stx.3.0

Logs
----
pip install --upgrade pip setuptools
Collecting pip
  Downloading https://files.pythonhosted.org/packages/43/84/23ed6a1796480a6f1a2d38f2802901d078266bda38388954d01d3f2e821d/pip-20.1.1-py2.py3-none-any.whl (1.5MB)
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/8b/0f/5f135746c4d0c95fcc3c9a30ac942330bbdf092879ccaae7e3dcba6ea214/setuptools-49.1.0.zip (2.2MB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "setuptools/__init__.py", line 21, in <module>
        import setuptools.version
      File "setuptools/version.py", line 1, in <module>
        import pkg_resources
      File "pkg_resources/__init__.py", line 1381
        raise SyntaxError(e) from e
                                ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-DXf5t8/setuptools/

Revision history for this message
Davlet Panech (dpanech) wrote :

There seems to be a fix in master: https://review.opendev.org/#/c/711967/

Changed in starlingx:
assignee: nobody → Davlet Panech (dpanech)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (r/stx.3.0)

Reviewed: https://review.opendev.org/740338
Committed: https://git.openstack.org/cgit/starlingx/root/commit/?id=e16f4c4bedafe2d7cd1a39934be8d8dc4ed49caa
Submitter: Zuul
Branch: r/stx.3.0

commit e16f4c4bedafe2d7cd1a39934be8d8dc4ed49caa
Author: Davlet Panech <email address hidden>
Date: Mon Mar 9 14:54:10 2020 -0400

    Fixed broken setuptools import

    pyScss tries to import a module called "Feature" from setuptools,
    which was removed from setuptools 46.0.0 (mar 8 2020). This causes
    compilation erros. The fix updates "pip install" in Dockerfile
    to install setuptools < 46.0.0

    Change-Id: Ib5c00aafb934efaf1413e72ede30638f2dc35230
    Signed-off-by: Davlet Panech <email address hidden>
    (cherry picked from commit 3b0e2dd4ea92b4fe5b53b1fd4b38a5e673e9c92c)
    Signed-off-by: Davlet Panech <email address hidden>
    Closes-Bug: 1886963

Ghada Khalil (gkhalil)
tags: added: stx.3.0 stx.build
Changed in starlingx:
importance: Undecided → Critical
Davlet Panech (dpanech)
Changed in starlingx:
status: In Progress → Fix Committed
Davlet Panech (dpanech)
Changed in starlingx:
status: Fix Committed → Fix Released
Ghada Khalil (gkhalil)
tags: added: in-r-stx30
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.