8000 python: Suppress deprecation warnings related to OptionInfo by daniel-larraz · Pull Request #12009 · cvc5/cvc5 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

python: Suppress deprecation warnings related to OptionInfo #12009

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

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

daniel-larraz
Copy link
Contributor
@daniel-larraz daniel-larraz commented Jun 24, 2025

PR #11931 introduced deprecation warnings for users of the cvc5 library. This PR suppresses those warnings when building the Python bindings for cvc5.

extra_compile_args = [
"-std=c++17",
"-fno-var-tracking",
# Suppress deprecation warnings for deprecated members of OptionInfo
Copy link
Member
@aniemetz aniemetz Jun 24, 2025

Choose a reason for hiding this comment

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

Hm, until now we haven't suppressed these warnings in the Python API, but one may argue that this is the devs' business to take care of, not the users'. This in not only because of OptionInfo, is it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is only because of OptionInfo. This case is special in the sense that we are still using OptionInfo, which contains deprecated members in its data structure. All other cases of deprecation warnings are related to functions that we no longer use.

8000

@aniemetz aniemetz added this pull request to the merge queue Jun 24, 2025
Merged via the queue into cvc5:main with commit 5372270 Jun 24, 2025
13 checks passed
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
0