Skip to content

Commit

Permalink
Report installing custom python versions as a warning...
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Sep 6, 2024
1 parent 9f21502 commit 83ea094
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,16 @@ def disclaimer_wording_or_placeholder(app):
"The doc/ folder seems to still contain some dummy, placeholder messages in the .md markdown files. If those files are not useful in the context of your app, simply remove them."
)

@test()
def custom_python_version(app):

cmd = f"grep -q -IhEr '^[^#]*install_python' '{app.path}/scripts/'"

This comment has been minimized.

Copy link
@jedie

jedie Sep 6, 2024

Contributor
if os.system(cmd) == 0:
yield Warning(
"It looks like this app installs a custom version of Python which is heavily discouraged, both because it takes a shitload amount of time to compile Python locally, and because it is likely to create complication later once the system gets upgraded to newer Debian versions..."
)


@test()
def change_url_script(app):

Expand Down

0 comments on commit 83ea094

Please sign in to comment.