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 wheel build #2332

Merged
merged 3 commits into from
Jun 17, 2024
Merged

fix wheel build #2332

merged 3 commits into from
Jun 17, 2024

Conversation

horheynm
Copy link
Member

@horheynm horheynm commented Jun 17, 2024

Import is_release from version.py for setup.py.
Running gdb, _generate_version didnt recognize global variables, so made sure the necessary variables are in scope.

@horheynm horheynm marked this pull request as ready for review June 17, 2024 14:57
setup.py Outdated

# load and overwrite version and release info from sparseml package
exec(open(os.path.join("src", "sparseml", "version.py")).read())
print(f"loaded version {version} from src/sparseml/version.py")
version_nm_deps = f"{version_major_minor}.0"
version_nm_deps = f"{version}.0"
Copy link
Member

Choose a reason for hiding this comment

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

This line should not change since version is the full version string?

Copy link
Member Author

Choose a reason for hiding this comment

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

Is this the different than line 25 on the old code?
version_major_minor = version?

Copy link
Member

Choose a reason for hiding this comment

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

From the old code you can see that it's using major.minor.0, but here in the new code {version} is the full string, so it becomes major.minor.hotfix.0?

@bfineran bfineran merged commit bd0d80c into main Jun 17, 2024
18 checks passed
@bfineran bfineran deleted the wheel-fix branch June 17, 2024 19:16
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.

3 participants