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

Remove unnecessary astpretty dependency #1164

Open
ptheywood opened this issue Dec 14, 2023 · 2 comments
Open

Remove unnecessary astpretty dependency #1164

ptheywood opened this issue Dec 14, 2023 · 2 comments
Labels

Comments

@ptheywood
Copy link
Member

ptheywood commented Dec 14, 2023

Astpretty is currently a pyflamegpu dependency in setup.py.in.

It is not actually used within pyfalemgpu's codegen module, only in a test.

It therefore is not a dependency of pyflamegpu, so should be removed from setup.py.in.

Usage within the test suite is also condition, guarded by an undefined variable DEBUG_OUT. This should be removed too, and can be added back in with the import if/when required.

Usage within the test suite is guarded by a file-scoped variable DEBUG_OUT, which is set to true.
We can make this an optional dependency installed in the test environment alongside pytest.

@ptheywood ptheywood changed the title Remove astpretty dependency Remove unnecessary astpretty dependency Dec 14, 2023
@Robadob
Copy link
Member

Robadob commented Dec 14, 2023

This impacts #1131 too

@ptheywood
Copy link
Member Author

This impacts #1131 too

It explains the comment in the conda recipe

astpretty # [linux, win64] Not clear why conda thinks this isn't used

I.e. conda is correct, its not used.

ptheywood added a commit that referenced this issue Dec 14, 2023
astpretty is only used for prettyprint debugging in codegen testing - it is not a pyflamegpu dependency.

This commit also makes it an optional test_codegen.py dependency (but installs it in the test venv by default)

Closses #1164
ptheywood added a commit that referenced this issue Dec 14, 2023
astpretty is only used for prettyprint debugging in codegen testing - it is not a pyflamegpu dependency.

This commit also makes it an optional test_codegen.py dependency (but installs it in the test venv by default)

Closses #1164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants