Skip to content

Commit 54a66b6

Browse files
committed
Release python3-frozen #8
https://github.com/yandex/toolchain-registry/releases/tag/python3-frozen-v8 commit_hash:db14a768da738da2ea13bd7cb7af738d83793500
1 parent ab5c8d6 commit 54a66b6

32 files changed

+129
-22
lines changed

build/conf/python.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ when ($BUILD_PYTHON3_BIN) {
142142
YMAKE_PYTHON3_PEERDIR=
143143
}
144144
otherwise {
145-
YMAKE_PYTHON3=${YMAKE_PYTHON3_RESOURCE_GLOBAL}/python3
145+
YMAKE_PYTHON3=${YMAKE_PYTHON3_RESOURCE_GLOBAL}/bin/python3
146146
}
147147

148148
# tag:python-specific

build/mapping.conf.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,11 @@
936936
"5647712429": "https://devtools-registry.s3.yandex.net/5647712429",
937937
"5690801745": "https://devtools-registry.s3.yandex.net/5690801745",
938938
"5731299437": "https://devtools-registry.s3.yandex.net/5731299437",
939+
"7305344928": "https://devtools-registry.s3.yandex.net/7305344928",
940+
"7305350444": "https://devtools-registry.s3.yandex.net/7305350444",
941+
"7305345577": "https://devtools-registry.s3.yandex.net/7305345577",
942+
"7305300819": "https://devtools-registry.s3.yandex.net/7305300819",
943+
"7305304147": "https://devtools-registry.s3.yandex.net/7305304147",
939944
"6048579718": "https://devtools-registry.s3.yandex.net/6048579718",
940945
"2980468199": "https://devtools-registry.s3.yandex.net/2980468199",
941946
"5562224408": "https://devtools-registry.s3.yandex.net/5562224408"
@@ -1876,6 +1881,11 @@
18761881
"5647712429": "ymake.exe for win32-clang-cl",
18771882
"5690801745": "ymake.exe for win32-clang-cl",
18781883
"5731299437": "ymake.exe for win32-clang-cl",
1884+
"7305344928": "ynd-bin-frozen-python3-darwin-arm64-ab0a502817597e3d47908a57acddc152998e979e",
1885+
"7305350444": "ynd-bin-frozen-python3-darwin-x86_64-ab0a502817597e3d47908a57acddc152998e979e",
1886+
"7305345577": "ynd-bin-frozen-python3-linux-aarch64-ab0a502817597e3d47908a57acddc152998e979e",
1887+
"7305300819": "ynd-bin-frozen-python3-linux-x86_64-ab0a502817597e3d47908a57acddc152998e979e",
1888+
"7305304147": "ynd-bin-frozen-python3-mingw-w64-x86_64-ab0a502817597e3d47908a57acddc152998e979e",
18791889
"6048579718": "yt/go/ytrecipe/cmd/ytexec for linux",
18801890
"2980468199": "ytexec for linux",
18811891
"5562224408": "ytexec for linux"
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"by_platform": {
3-
"darwin-x86_64": {
4-
"uri": "sbr:7203671634"
5-
},
63
"darwin-arm64": {
7-
"uri": "sbr:7203671142"
4+
"uri": "sbr:7305344928"
85
},
9-
"linux-x86_64": {
10-
"uri": "sbr:7203672677"
6+
"darwin-x86_64": {
7+
"uri": "sbr:7305350444"
118
},
129
"linux-aarch64": {
13-
"uri": "sbr:7203672172"
10+
"uri": "sbr:7305345577"
11+
},
12+
"linux-x86_64": {
13+
"uri": "sbr:7305300819"
1414
},
1515
"win32-x86_64": {
16-
"uri": "sbr:7203670792"
16+
"uri": "sbr:7305304147"
1717
}
1818
}
1919
}

build/scripts/Readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Note
2+
При добавлении новых скриптов в данную директорию не забывайте указывать две вещи:
3+
4+
1. Явное разрешать импорт модулей из текущей директории, если это вам необходимо, с помощью строк:
5+
```python3
6+
import os.path, sys
7+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
8+
```
9+
2. В командах вызова скриптов прописывать все их зависимые модули через `${input:"build/scripts/module_1.py"}`, `${input:"build/scripts/module_2.py"}` ...

build/scripts/compile_java.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
import zipfile
99
import sys
1010

11+
# Explicitly enable local imports
12+
# Don't forget to add imported scripts to inputs of the calling command!
13+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
1114
import process_command_files as pcf
1215
import java_command_file as jcf
1316

build/scripts/copy_clang_profile_rt.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import optparse
2-
import os
2+
import sys, os
33
import shutil
44

5+
# Explicitly enable local imports
6+
# Don't forget to add imported scripts to inputs of the calling command!
7+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
58
import process_command_files as pcf
69

710
# List is a temporary thing to ensure that nothing breaks before and after switching to newer clang

build/scripts/copy_docs_files.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
import codecs
33
import errno
44
import os
5+
import sys
6+
7+
# Explicitly enable local imports
8+
# Don't forget to add imported scripts to inputs of the calling command!
9+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
510
import process_command_files as pcf
611
import shutil
7-
import sys
812

913

1014
def parse_args():

build/scripts/copy_docs_files_to_dir.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
import codecs
33
import errno
44
import os
5+
import sys
6+
7+
# Explicitly enable local imports
8+
# Don't forget to add imported scripts to inputs of the calling command!
9+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
510
import process_command_files as pcf
611
import shutil
7-
import sys
812

913

1014
def parse_args():

build/scripts/copy_files_to_dir.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import argparse
22
import errno
33
import os
4+
import sys
5+
6+
# Explicitly enable local imports
7+
# Don't forget to add imported scripts to inputs of the calling command!
8+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
49
import process_command_files as pcf
510
import shutil
6-
import sys
711

812

913
def parse_args():

build/scripts/extract_docs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import argparse
22
import os
3-
import process_command_files as pcf
43
import tarfile
54
import sys
65

6+
# Explicitly enable local imports
7+
# Don't forget to add imported scripts to inputs of the calling command!
8+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
9+
import process_command_files as pcf
10+
711

812
def parse_args():
913
parser = argparse.ArgumentParser()

build/scripts/fetch_from.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
# Python 3
2323
import urllib.request as urllib_request
2424
from urllib.error import HTTPError, URLError
25+
# Explicitly enable local imports
26+
# Don't forget to add imported scripts to inputs of the calling command!
27+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
2528

2629
import retry
2730

build/scripts/fetch_from_archive.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import logging
55
import argparse
66

7+
# Explicitly enable local imports
8+
# Don't forget to add imported scripts to inputs of the calling command!
9+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
710
import fetch_from
811

912

build/scripts/fetch_from_mds.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
from __future__ import print_function
2-
from __future__ import print_function
32

43
import os
54
import sys
65
import logging
76
import argparse
87

8+
# Explicitly enable local imports
9+
# Don't forget to add imported scripts to inputs of the calling command!
10+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
911
import fetch_from
1012

1113

build/scripts/fetch_from_sandbox.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
import urllib2
1212
import uuid
1313

14+
# Explicitly enable local imports
15+
# Don't forget to add imported scripts to inputs of the calling command!
16+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
17+
1418
import fetch_from
1519

1620

build/scripts/fix_msvc_output.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import subprocess
2-
import sys
2+
import os, sys
33

4+
# Explicitly enable local imports
5+
# Don't forget to add imported scripts to inputs of the calling command!
6+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
47
import process_command_files as pcf
58
import process_whole_archive_option as pwa
69

build/scripts/fix_py2_protobuf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import subprocess
2-
import os
2+
import os, sys
33

4+
# Explicitly enable local imports
5+
# Don't forget to add imported scripts to inputs of the calling command!
6+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
47
import process_command_files as pcf
58

69

build/scripts/fs_tools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
import shutil
77
import errno
88

9+
# Explicitly enable local imports
10+
# Don't forget to add imported scripts to inputs of the calling command!
11+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
912
import process_command_files as pcf
1013

1114

build/scripts/gen_join_srcs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import sys
1+
import os, sys
22

3+
# Explicitly enable local imports
4+
# Don't forget to add imported scripts to inputs of the calling command!
5+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
36
import process_command_files as pcf
47

58

build/scripts/generate_mf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
import six
88

9+
# Explicitly enable local imports
10+
# Don't forget to add imported scripts to inputs of the calling command!
11+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
912
import process_command_files as pcf
1013

1114

build/scripts/go_tool.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
from contextlib import contextmanager
1414
from functools import reduce
1515

16+
# Explicitly enable local imports
17+
# Don't forget to add imported scripts to inputs of the calling command!
18+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
1619
import process_command_files as pcf
1720
import process_whole_archive_option as pwa
1821

build/scripts/link_dyn_lib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
import optparse
88
import pipes
99

10+
# Explicitly enable local imports
11+
# Don't forget to add imported scripts to inputs of the calling command!
12+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
1013
import thinlto_cache
1114
import link_exe
1215

build/scripts/link_exe.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
import optparse
77
import textwrap
88

9+
# Explicitly enable local imports
10+
# Don't forget to add imported scripts to inputs of the calling command!
11+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
912
import process_command_files as pcf
1013
import thinlto_cache
1114

build/scripts/link_fat_obj.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import argparse
22
import subprocess
3-
import sys
3+
import sys, os
44

5+
# Explicitly enable local imports
6+
# Don't forget to add imported scripts to inputs of the calling command!
7+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
58
import process_command_files as pcf
69

710
from process_whole_archive_option import ProcessWholeArchiveOption

build/scripts/make_container.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
import subprocess
66
import sys
77

8+
# Explicitly enable local imports
9+
# Don't forget to add imported scripts to inputs of the calling command!
10+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
811
import container # 1
912

1013

build/scripts/make_java_classpath_file.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import os
22
import sys
33

4+
# Explicitly enable local imports
5+
# Don't forget to add imported scripts to inputs of the calling command!
6+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
47
import process_command_files as pcf
58

69

build/scripts/make_java_srclists.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
import sys
33
import argparse
44

5+
# Explicitly enable local imports
6+
# Don't forget to add imported scripts to inputs of the calling command!
7+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
58
import process_command_files as pcf
69
import java_pack_to_file as jcov
710

build/scripts/move.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import os
22
import sys
33

4+
# Explicitly enable local imports
5+
# Don't forget to add imported scripts to inputs of the calling command!
6+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
47
import process_command_files as pcf
58

69
# /script/move.py <src-1> <tgt-1> <src-2> <tgt-2> ... <src-n> <tgt-n>

build/scripts/process_whole_archive_option.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import os
1+
import os, sys
22

3+
# Explicitly enable local imports
4+
# Don't forget to add imported scripts to inputs of the calling command!
5+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
36
import process_command_files as pcf
47

58

build/scripts/run_javac.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import os
55
import re
66

7+
# Explicitly enable local imports
8+
# Don't forget to add imported scripts to inputs of the calling command!
9+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
710
import build_java_with_error_prone2 as java_error_prone
811
import setup_java_tmpdir as java_tmpdir
912

build/scripts/run_msvc_wine.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
import argparse
1010
import errno
1111

12+
# Explicitly enable local imports
13+
# Don't forget to add imported scripts to inputs of the calling command!
14+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
1215
import process_command_files as pcf
1316
import process_whole_archive_option as pwa
1417

build/scripts/sky.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import logging
2-
import os
2+
import os, sys
33
import subprocess
44

5+
# Explicitly enable local imports
6+
# Don't forget to add imported scripts to inputs of the calling command!
7+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
58
import fetch_from
69

710

build/scripts/writer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
import sys
1+
import sys, os
22
import argparse
33

4+
# Explicitly enable local imports
5+
# Don't forget to add imported scripts to inputs of the calling command!
6+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
47
import process_command_files as pcf
58

69

0 commit comments

Comments
 (0)