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

Modify wscript as OS no longer returns patch version #570

Closed

Conversation

mdlpstsci
Copy link
Contributor

MacOS Monterey no longer returns a patch version for
/usr/bin/sw_vers -productVersion. Solution was to remove the obsolete code.

# Convert major/minor/patch values into a single 24-bit integer
osx_version = (osx_version_major & 0xff) << 16 | (osx_version_minor & 0xff) << 8 | (osx_version_patch & 0xff )
# Convert major/minor values into a single 24-bit integer
osx_version = (osx_version_major & 0xff) << 16 | (osx_version_minor & 0xff) << 8
Copy link
Contributor

Choose a reason for hiding this comment

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

Huh... Maybe @jhunkeler might still be interested to look at this.

After all, he did try to be rid of waf and go back to cmake a couple of times (#412).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No doubt. Brendan needs these changes ASAP so I did the expedient change.

Copy link
Contributor

Choose a reason for hiding this comment

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

@mdlpstsci
Copy link
Contributor Author

Solution superseded by improved solution in #571.

@mdlpstsci mdlpstsci closed this Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants