Skip to content

Conversation

mark-thm
Copy link
Contributor

Description

Update configdefaults to only attempt to retrieve gcc_version_str iff config.cxx is non-empty.

Related Issue

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

try:
p_out = output_subprocess_Popen([config.cxx, "-dumpversion"])
gcc_version_str = p_out[0].strip().decode()
except OSError:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

an alternative fix would be to catch everything instead of just OSError, but the proposed change seemed narrower/safer.

@ricardoV94 ricardoV94 requested a review from lucianopaz April 10, 2024 21:17
@ricardoV94 ricardoV94 added bug Something isn't working C-backend labels Apr 11, 2024
Copy link
Member

@lucianopaz lucianopaz left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks @mark-thm!

@ricardoV94 ricardoV94 merged commit 09576cf into pymc-devs:main Apr 17, 2024
@mark-thm mark-thm deleted the patch-1 branch April 17, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working C-backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: configdefaults invokes config.cxx even when config.cxx is absent

3 participants