Fix Build.yml build issue#979
Conversation
| sudo apt update -y | ||
| sudo apt-get install build-essential python3-dev libldap2-dev libsasl2-dev vim -y | ||
| python -m pip install --upgrade pip | ||
| pip install "setuptools<82" |
There was a problem hiding this comment.
Why we are installing an old version ?
There was a problem hiding this comment.
The ibm-cloud-sdk-core==3.18.0 (and other IBM packages like ibm-platform-services, ibm-vpc, ibm-schematics) use a legacy setup.py-based build that imports pkg_resources at build time.
pkg_resources was part of the setuptools package for years. But starting with setuptools 82+, pkg_resources was removed into a separate package (or dropped entirely from the default install)
By pinning setuptools<82, you ensure pkg_resources is still bundled, so the IBM packages' legacy setup.py can build successfully.
There was a problem hiding this comment.
so all the issue is because ibm-cloud-sdk-core, did you check maybe there is a newer sdk ?
Type of change
Note: Fill x in []
Description
pypi_validate step in Build.yml is failing during ibm-cloud-sdk-core installation step.
For security reasons, all pull requests need to be approved first before running any automated CI