Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setuptools version for install failure #511

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

joseph-v
Copy link
Collaborator

@joseph-v joseph-v commented Feb 7, 2023

This PR is to ensure installed setuptools version, which is compatible with other modules of the project.
If setuptools version is higher than 65, downgrade it to 65

What type of PR is this?

/kind bug fix

What this PR does / why we need it:
Latest version of Python3 module setuptools is not compatible pip module and causes install failure when pip is used

Which issue(s) this PR fixes:

Fixes #510

Test Report Added?:

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind TESTED
/kind NOT-TESTED

Test Report:

Special notes for your reviewer:

@joseph-v joseph-v force-pushed the fix_setuptools_ver branch 2 times, most recently from 3d1e8fb to 614f1e5 Compare February 16, 2023 11:10
Copy link
Member

@anvithks anvithks left a comment

Choose a reason for hiding this comment

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

Overall LGTM. But preferably add a detailed comment as to why the version is being limited to 65.

sudo apt-get install -y python3-distutils python3-testresources python3-pip
python3 -m pip install -U pip

# Update setuptool version if it is higher than 65
Copy link
Member

@anvithks anvithks Feb 17, 2023

Choose a reason for hiding this comment

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

nit: A detailed comment as to why this is being done will help any one looking at the code.
// Downgrade the setuuptools version to 65 if it is higher to prevent breaking changes (or whatever the reason is)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@anvithks anvithks merged commit 94b1b6e into sodafoundation:master Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installer failed to for delfin configuration
3 participants