-
Notifications
You must be signed in to change notification settings - Fork 2k
Single pass pyc creation #8015
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
Merged
Merged
Single pass pyc creation #8015
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
8020e4f
add compile_multiple_pyc function
jjhelmus 55842ca
CompileMultiPycAction and base classes
jjhelmus 159d938
WIP: single_pass
jjhelmus 0f05165
clean up paths_data creation
jjhelmus 48db9f1
back off changes to PrefixPathAction
jjhelmus 54626e3
merge CreateInPrefixMultiPathAction with CompileMultiPycAction class
jjhelmus 7b86bf4
merge PrefixMultiPathAction with CompileMultiPycAction class
jjhelmus fe22f04
reorganize CompileMultiPycAction attributes
jjhelmus 4867652
flake8
jjhelmus d8b70e7
more flake8
jjhelmus 9321dc7
fix log string in CompileMultiPycAction
jjhelmus 034f135
tests CompileMultiPycAction
jjhelmus 8908591
more flake8
jjhelmus b23c8fb
remote unused CompilePycAction class and compile_pyc func
jjhelmus 2fd7208
remove import of compile_pyc
jjhelmus 8894c4c
cast inputs to compile_multiple_pyc to tuples
jjhelmus 51a3aec
special case pyc compiling on windows
jjhelmus f84ef46
Revert "special case pyc compiling on windows"
jjhelmus 2a8960b
escape and use proper linesep on windows
jjhelmus 7c6fea5
fix typo
jjhelmus e96463c
call py_compile multiple times on windows
jjhelmus 479115e
Revert "call py_compile multiple times on windows"
jjhelmus 245a2a9
retain stdin if already encoded
jjhelmus 1346a29
encode stdin using cp1252 on windows
jjhelmus cf3dbd8
try to use sys.getfilesystemencoding instead of hardcoding cp1252
msarahan 3cb7a95
try using py_compile instead of shell
msarahan 9f6a35f
Revert "try using py_compile instead of shell"
jjhelmus 60d5a41
Revert "try to use sys.getfilesystemencoding instead of hardcoding cp…
jjhelmus b3cb857
determine encoding for stdin via call to python
jjhelmus 5997bd3
use compileall with root path to avoid stdin woes
msarahan 43a124d
fix quoting for pyc compilation subprocess
msarahan 7b994bc
pass explicit file list to compileall via namedtempfile
msarahan ce80012
add -l flag to compileall to make sure it only touches what we want
msarahan 912537d
try mkstemp, because windows
msarahan fd7d4c6
try default filesystem encoding when writing temp file
msarahan e23be04
use relative paths in pyc compile subprocess call
msarahan 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
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.
Uh oh!
There was an error while loading. Please reload this page.