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

Add annotate cython files options when installing the module #2130

Merged
merged 2 commits into from
Mar 24, 2023

Conversation

Ericgig
Copy link
Member

@Ericgig Ericgig commented Mar 21, 2023

Description
Add options to annotate the cython files at installation.
I used it when updating the stochastic solvers, but do not what to include it in that PR.

@coveralls
Copy link

coveralls commented Mar 21, 2023

Coverage Status

Coverage: 75.414% (+0.02%) from 75.391% when pulling 1751699 on Ericgig:annotate_setup into 9c97237 on qutip:master.

Copy link
Contributor

@hodgestar hodgestar 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 very useful. Thanks!

setup.py Outdated
@@ -44,6 +44,13 @@ def process_options():
options = _determine_user_arguments(options)
options = _determine_version(options)
options = _determine_compilation_options(options)
options["annotate"] = False
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we move this into its own function named something like _determine_cythonize_options so that it's organized the same way as the other options?

Copy link
Contributor

@hodgestar hodgestar left a comment

Choose a reason for hiding this comment

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

Looks good to me.

One last thought -- do we want to keep support for -a? The setup command already parses a bunch of options on its own while -a doesn't appear to clash with anything right now, it is easy for a single letter to clash (e.g. -b and -c are already used by the build subcommand).

@Ericgig
Copy link
Member Author

Ericgig commented Mar 22, 2023

I mostly use it as -a, I would remove it if/when it clash.

@Ericgig Ericgig merged commit ab6a0d7 into qutip:master Mar 24, 2023
@Ericgig Ericgig deleted the annotate_setup branch March 24, 2023 20:02
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.

None yet

3 participants