-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
Fixed ninja binary location logic to use ninja.BIN_DIR. #4655
Conversation
…c no longer works starting with python ninja package version 1.11.1.2
testing/framework/TestSCons.py
Outdated
@@ -1079,7 +1087,16 @@ def java_get_class_files(self, dir): | |||
result.append(os.path.join(dirpath, fname)) | |||
return sorted(result) | |||
|
|||
def Qt_dummy_installation(self, dir: str='qt') -> None: | |||
def ninja_binary(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious if this a method for efficiency reasons, or if it would be better as just a variable at a top level like is done with the path to Python?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point.
I'll change to that and update the branch.
"scons: done reading SConscript files.\n" + \ | ||
f"scons: {cap}ing targets ...\n" + \ | ||
build_str + \ | ||
term |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of this file is style stuff... I have a complete "black" reformat of the framework for when you feel enthused... actually "reviewing" it would be a bear though, so here it still sits. That line got turned into this, for example:
return (
"scons: Reading SConscript files ...\n"
+ read_str
+ "scons: done reading SConscript files.\n"
+ f"scons: {cap}ing targets ...\n"
+ build_str
+ term
)
CHANGES.txt
Outdated
- Update ninja tool to use ninja.BIN_DIR to find pypi packaged ninja binary. | ||
python ninja package version 1.11.1.2 changed the location and previous | ||
logic no longer worked. | ||
- Added ninja_binary() method to TestSCons to centralize logic to find ninja binary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks okay to me (although see the question on the added method itself).
…tool loading logic. This fixes changes in this PR breaking JavaCommonTests because pypi's ninja module and SCons.Tool.ninja had the same name which python couldn't differentiate
Previous logic no longer works starting with python ninja package version 1.11.1.2
Contributor Checklist:
CHANGES.txt
andRELEASE.txt
(and read theREADME.rst
).