Skip to content

Fix Build.yml build issue#979

Merged
pragya811 merged 2 commits into
mainfrom
build-yml-fix
Mar 25, 2026
Merged

Fix Build.yml build issue#979
pragya811 merged 2 commits into
mainfrom
build-yml-fix

Conversation

@pragya811

Copy link
Copy Markdown
Member

Type of change

Note: Fill x in []

  • bug
  • enhancement
  • documentation
  • dependencies

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

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"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we are installing an old version ?

@pragya811 pragya811 Mar 25, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so all the issue is because ibm-cloud-sdk-core, did you check maybe there is a newer sdk ?

@pragya811 pragya811 merged commit 3e5af77 into main Mar 25, 2026
33 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in Cloud-Governance project Mar 25, 2026
@pragya811 pragya811 deleted the build-yml-fix branch March 25, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants