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

Enable denoise.py to work as script to avoid need for PYTHONPATH in env #281

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

smarr
Copy link
Owner

@smarr smarr commented Jan 25, 2025

This PR does away with some of the complexity around the rebench-denoise command when used directly from rebench.

denoise.py is now an executable script with a shebang line, and executed directly.
While rebench-denoise is convenient for command-line users, it expects a proper setup of Python and a PYTHONPATH that allows the launcher script (generated by pip) to find the actual implementation.
This meant we had to set PYTHONPATH when using sudo to run rebench-denoise (as per #260), which could possibly interfere with Python programs running.

Minor Changes

  • make denoise.py executable for all
  • denoise.py/rebench-denoise does not support --version any longer, but that seems like an ok tradeoff

Related Issues

@martinmcclure this might impact you
@vext01 and you possibly, too.

@coveralls
Copy link

coveralls commented Jan 25, 2025

Coverage Status

coverage: 85.143% (+0.7%) from 84.46%
when pulling 15169ca on avoid-using-pythonpath
into dd85609 on master.

@vext01
Copy link
Contributor

vext01 commented Jan 26, 2025

I must admit, we've not been using denoise for our rough benchmarking just yet, but we will probably do so in the future.

smarr added 3 commits January 28, 2025 12:04
…e set in environment

- make denoise.py executable for all
- denoise.py does not support —version any longer, but that seems like an ok tradeoff

Signed-off-by: Stefan Marr <[email protected]>
@smarr smarr force-pushed the avoid-using-pythonpath branch from e6358fb to 15169ca Compare January 28, 2025 12:05
@smarr smarr merged commit 14e4c83 into master Jan 28, 2025
14 checks passed
@smarr smarr deleted the avoid-using-pythonpath branch January 28, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants