init
This commit is contained in:
commit
38355d2442
9083 changed files with 1225834 additions and 0 deletions
27
.venv/lib/python3.8/site-packages/mypyc/options.py
Normal file
27
.venv/lib/python3.8/site-packages/mypyc/options.py
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
from typing import Optional, Tuple
|
||||
import sys
|
||||
|
||||
|
||||
class CompilerOptions:
|
||||
def __init__(self,
|
||||
strip_asserts: bool = False,
|
||||
multi_file: bool = False,
|
||||
verbose: bool = False,
|
||||
separate: bool = False,
|
||||
target_dir: Optional[str] = None,
|
||||
include_runtime_files: Optional[bool] = None,
|
||||
capi_version: Optional[Tuple[int, int]] = 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
|
||||
)
|
||||
# The target Python C API version. Overriding this is mostly
|
||||
# useful in IR tests, since there's no guarantee that
|
||||
# binaries are backward compatible even if no recent API
|
||||
# features are used.
|
||||
self.capi_version = capi_version or sys.version_info[:2]
|
||||
Loading…
Add table
Add a link
Reference in a new issue