forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1473498 - [mach] Support running mach commands with python 3 r=gl…
…andium,mars Credit: mars for making the shell POSIX compliant This embeds a blacklist of every mach command that needs to run with Python 2 directly in the mach driver itself. Initially this is every mach command. We then use a bit of shell to determine whether the command being run needs Python 2 or 3. While this approach may seem a bit hacky, it has several benefits: 1. No need to add complex machinery in mach's registration code. 2. No need to spawn two separate Python interpreters in the event a different Python from the original interpreter is needed. 3. Perf impact is negligible. 4. New commands are Python 3 by default. It is also only a temporary hack. Once all commands are running with Python 3, we can revert back to the original mach driver. Differential Revision: https://phabricator.services.mozilla.com/D36103
- Loading branch information
Showing
4 changed files
with
209 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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 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 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 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