-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathconfigure
executable file
·46 lines (34 loc) · 1.17 KB
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python3
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES.
# All rights reserved.
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
import sys
MIN_PY = (3, 10)
if sys.version_info < MIN_PY:
banner_len = 80
banner_sep = "*"
banner = banner_sep * banner_len
def _banner_print(line):
print(banner_sep + line.center(banner_len - 2) + banner_sep) # noqa: T201
print(banner) # noqa: T201
_banner_print(
"Python version "
+ ".".join(map(str, MIN_PY))
+ "+ is required to run configure"
)
info = sys.version_info
_banner_print(
"Current Python version: "
+ ".".join(map(str, [info.major, info.minor, info.micro]))
)
print(banner) # noqa: T201
sys.exit(1)
import os # noqa: E402
sys.path.insert(0, os.path.abspath("config")) # noqa: PTH100
from config.aedifix.main import basic_configure # noqa: E402
from config.legate_internal.main_package import Legate # noqa: E402
def main(): # noqa: D103
return basic_configure(tuple(sys.argv[1:]), Legate)
if __name__ == "__main__":
sys.exit(main())