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 compatibility with SCons 3.x #1265

Merged
merged 2 commits into from
Apr 30, 2022
Merged

Conversation

speth
Copy link
Member

@speth speth commented Apr 30, 2022

The 'relpath' attribute was only introduced in SCons 4.2.0, which isn't available on all supported build environments (notably, Anaconda, which only has SCons 4.1.0).

If applicable, fill in the issue number this pull request is fixing

Fixes #1253

If applicable, provide an example illustrating new features this pull request is introducing

Checklist

  • The pull request includes a clear description of this code change
  • Commit messages have short titles and reference relevant issues
  • Build passes (scons build & scons test) and unit tests address code coverage
  • Style & formatting of contributed code follows contributing guidelines
  • The pull request is ready for review

The 'relpath' attribute was only introduced in SCons 4.2.0, which isn't
available on all supported build environments (notably, Anaconda, which
only has SCons 4.1.0).

Fixes Cantera#1253
Copy link
Member

@ischoegl ischoegl left a comment

Choose a reason for hiding this comment

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

Looks easy enough. Perhaps we can pin one of the CI runners to an older SCons version (some use conda and are easy to configure)?

ischoegl
ischoegl previously approved these changes Apr 30, 2022
Copy link
Member

@ischoegl ischoegl left a comment

Choose a reason for hiding this comment

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

Thanks for adding the CI ... assuming this runs through, it's good to go! :shipit:

PS: Ugh ... didn't pass, although the failure appears to be isolated to Python 3.10

@speth
Copy link
Member Author

speth commented Apr 30, 2022

Hmm, I thought that was a clever option, but I guess SCons 3.0.1 (and maybe all 3.x releases?) are not compatible with Python 3.10. I'll have to think about how to do this without bloating the set of CI cases any further.

@speth
Copy link
Member Author

speth commented Apr 30, 2022

Well, based on the success of Ubuntu 20.04 (SCons 3.1.2) with Python 3.10, but not 18.04 (SCons 3.0.1), we can at least test that version.

Make sure that we're continuing to test older but still supported
versions of SCons.
@ischoegl ischoegl merged commit d7192b7 into Cantera:main Apr 30, 2022
@ischoegl ischoegl mentioned this pull request May 1, 2022
5 tasks
@speth speth deleted the fix-1253-scons-relpath branch July 23, 2024 15:33
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.

rpath related error on MacOS 12.3.1
2 participants