vyos-1x-vmware: T3681: Remove extra -x flag from Python bytecompile#4542
vyos-1x-vmware: T3681: Remove extra -x flag from Python bytecompile#4542c-po merged 1 commit intovyos:currentfrom
Conversation
|
👍 |
|
CI integration ❌ failed! Details
|
c-po
left a comment
There was a problem hiding this comment.
I actually wonder why this is done inside the test make target, and not somewhere else inside the Makefile at a different place - or handled via Debian rules.
I also found some __pycache__ folders under:
/usr/libexec/vyos/services/api/rest/__pycache__/usr/libexec/vyos/services/api/rest/__pycache__- ...
/usr/libexec/vyos/conf_mode/__pycache__/usr/libexec/vyos/system/__pycache__/usr/libexec/vyos/completion/__pycache__/usr/libexec/vyos/completion/qos/__pycache__/usr/libexec/vyos/activate/__pycache__
...
I have no idea why this is, maybe to compile everything so testing is consistent performance wise? I have not touched the other |
Change summary
It seems there can be only one
-xflag defined topython3 -m compileallcommand, so the second-x /ppp/overrides the first-x /vmware-tools/scripts/, meaning that #4525 did not actually solve the issue :(This extra PR removes the erroneous
-x /ppp/flag. With the-x /ppp/removed I can confirm the__pycache__is not there in the package.Types of changes
Related Task(s)
https://vyos.dev/T3681
Related PR(s)
#4525
How to test / Smoketest result
How to verify this PR after the package has been built:
There should be no
__pycache__directory in the package.Checklist: