forked from python/mypy
-
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.
[mypyc] Make a bunch of the build process more configurable (python#7939
- Loading branch information
Showing
7 changed files
with
93 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
from typing import Optional | ||
|
||
|
||
class CompilerOptions: | ||
def __init__(self, strip_asserts: bool = False, multi_file: bool = False, | ||
verbose: bool = False, separate: bool = False) -> None: | ||
verbose: bool = False, separate: bool = False, | ||
target_dir: Optional[str] = None, | ||
include_runtime_files: Optional[bool] = None) -> None: | ||
self.strip_asserts = strip_asserts | ||
self.multi_file = multi_file | ||
self.verbose = verbose | ||
self.separate = separate | ||
self.global_opts = not separate | ||
self.target_dir = target_dir or 'build' | ||
self.include_runtime_files = ( | ||
include_runtime_files if include_runtime_files is not None else not multi_file | ||
) |
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
Oops, something went wrong.