-
-
Notifications
You must be signed in to change notification settings - Fork 341
Fixed GH Issue 4809. scoop.sh installed scons (and likely scons-local )created msvs project files would fail. #4817
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
Open
bdbaddog
wants to merge
6
commits into
SCons:master
Choose a base branch
from
bdbaddog:fix_msvs_for_scoop
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0423c52
Fixed GH Issue 4809. scoop.sh installed scons (and likely scons-local…
bdbaddog 9c87b67
simplify msvs project file running SCons. Also make the abspath to th…
bdbaddog 85e459e
Removed unnecessary '-c' passed to python
bdbaddog 248019e
Add quotes around full paths to python and scons.py
bdbaddog b2b1404
Fixed tests to work with changed scons calls in generated msvs projec…
bdbaddog f5e3de9
Merge branch 'master' into fix_msvs_for_scoop
bdbaddog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Bugs of omission?
SCons/SCript/Mainmain function now takes a requiredscript_pathargument.Missing:
SCons/__main__.pyneeds to pass ascript_pathargument.bin/scons-test.pyfunctiondo_nothingneeds to accept ascript_pathargument.I could be wrong.
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 catch. Updating.
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.
How'd you find those? Are we missing some tests which should catch such? (python -m scons ?)
Uh oh!
There was an error while loading. Please reload this page.
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.
I just searched the source code for combinations of
Script.main(e.g. regexScript\.main\(most likely).Potential issues:
The change from
main()tomain(script_path)can/will break user code.Basically anyone doing the same thing:
import SCons.Script; SCons.Script.main().Isn't
mainthe entry point when building the wheel wrapper executables for Windows?I thought that the entry point was not supposed to take arguments but I certainly could be wrong. A required argument could be problematic.
scons.pyis not the only way SCons will be called.For example, the zipapp (e.g.,
scons-local-4.10.1.pyz) will be called via__main__.py.However, adding
os.path.abspath(__file__)will not work for the zippapp. An invocation likeS:\SCons\test-4809\scons-local-4.10.1.pyz\__main__.pywill fail.Something like
os.path.dirname(os.path.abspath(__file__))would be needed to use the name of the zipapp file itself. An invocation likeS:\SCons\test-4809\scons-local-4.10.1.pyzshould work.Changing the default generated msvs script code path from using
PYTHON_ROOTandPYTHONPATHwhich has allowed deferred evaluation of the location of python and SCons since version 1.0 to a hard-coded absolute path could break some user code.Both
PYTHON_ROOT(or something similar) andPYTHONPATHwere/are useful when using python and SCons from a USB stick and/or when physically moving folders between computers as it avoids hard-coded absolute paths.Edit: This is a different animal when actually launching the VS GUI which can be done via batch file(s) via the SCons project root to open the generated .sln in the appropriate build folder.
Don't shoot the messenger.
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.
Not shooting the messenger, just wanted to see what I should have done to catch those.