Skip to content

Commit

Permalink
Release python3-frozen #8
Browse files Browse the repository at this point in the history
https://github.com/yandex/toolchain-registry/releases/tag/python3-frozen-v8
commit_hash:db14a768da738da2ea13bd7cb7af738d83793500
  • Loading branch information
robot-brewer committed Oct 22, 2024
1 parent c2f82b7 commit 7804ddb
Show file tree
Hide file tree
Showing 32 changed files with 129 additions and 22 deletions.
2 changes: 1 addition & 1 deletion build/conf/python.conf
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ when ($BUILD_PYTHON3_BIN) {
YMAKE_PYTHON3_PEERDIR=
}
otherwise {
YMAKE_PYTHON3=${YMAKE_PYTHON3_RESOURCE_GLOBAL}/python3
YMAKE_PYTHON3=${YMAKE_PYTHON3_RESOURCE_GLOBAL}/bin/python3
}

# tag:python-specific
Expand Down
10 changes: 10 additions & 0 deletions build/mapping.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,11 @@
"5647712429": "https://devtools-registry.s3.yandex.net/5647712429",
"5690801745": "https://devtools-registry.s3.yandex.net/5690801745",
"5731299437": "https://devtools-registry.s3.yandex.net/5731299437",
"7305344928": "https://devtools-registry.s3.yandex.net/7305344928",
"7305350444": "https://devtools-registry.s3.yandex.net/7305350444",
"7305345577": "https://devtools-registry.s3.yandex.net/7305345577",
"7305300819": "https://devtools-registry.s3.yandex.net/7305300819",
"7305304147": "https://devtools-registry.s3.yandex.net/7305304147",
"6048579718": "https://devtools-registry.s3.yandex.net/6048579718",
"2980468199": "https://devtools-registry.s3.yandex.net/2980468199",
"5562224408": "https://devtools-registry.s3.yandex.net/5562224408"
Expand Down Expand Up @@ -1876,6 +1881,11 @@
"5647712429": "ymake.exe for win32-clang-cl",
"5690801745": "ymake.exe for win32-clang-cl",
"5731299437": "ymake.exe for win32-clang-cl",
"7305344928": "ynd-bin-frozen-python3-darwin-arm64-ab0a502817597e3d47908a57acddc152998e979e",
"7305350444": "ynd-bin-frozen-python3-darwin-x86_64-ab0a502817597e3d47908a57acddc152998e979e",
"7305345577": "ynd-bin-frozen-python3-linux-aarch64-ab0a502817597e3d47908a57acddc152998e979e",
"7305300819": "ynd-bin-frozen-python3-linux-x86_64-ab0a502817597e3d47908a57acddc152998e979e",
"7305304147": "ynd-bin-frozen-python3-mingw-w64-x86_64-ab0a502817597e3d47908a57acddc152998e979e",
"6048579718": "yt/go/ytrecipe/cmd/ytexec for linux",
"2980468199": "ytexec for linux",
"5562224408": "ytexec for linux"
Expand Down
16 changes: 8 additions & 8 deletions build/platform/python/ymake_python3/resources.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"by_platform": {
"darwin-x86_64": {
"uri": "sbr:7203671634"
},
"darwin-arm64": {
"uri": "sbr:7203671142"
"uri": "sbr:7305344928"
},
"linux-x86_64": {
"uri": "sbr:7203672677"
"darwin-x86_64": {
"uri": "sbr:7305350444"
},
"linux-aarch64": {
"uri": "sbr:7203672172"
"uri": "sbr:7305345577"
},
"linux-x86_64": {
"uri": "sbr:7305300819"
},
"win32-x86_64": {
"uri": "sbr:7203670792"
"uri": "sbr:7305304147"
}
}
}
9 changes: 9 additions & 0 deletions build/scripts/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Note
При добавлении новых скриптов в данную директорию не забывайте указывать две вещи:

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

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

Expand Down
5 changes: 4 additions & 1 deletion build/scripts/copy_clang_profile_rt.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import optparse
import os
import sys, os
import shutil

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

# List is a temporary thing to ensure that nothing breaks before and after switching to newer clang
Expand Down
6 changes: 5 additions & 1 deletion build/scripts/copy_docs_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
import codecs
import errno
import os
import sys

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


def parse_args():
Expand Down
6 changes: 5 additions & 1 deletion build/scripts/copy_docs_files_to_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
import codecs
import errno
import os
import sys

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


def parse_args():
Expand Down
6 changes: 5 additions & 1 deletion build/scripts/copy_files_to_dir.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import argparse
import errno
import os
import sys

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


def parse_args():
Expand Down
6 changes: 5 additions & 1 deletion build/scripts/extract_docs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import argparse
import os
import process_command_files as pcf
import tarfile
import sys

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


def parse_args():
parser = argparse.ArgumentParser()
Expand Down
3 changes: 3 additions & 0 deletions build/scripts/fetch_from.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
# Python 3
import urllib.request as urllib_request
from urllib.error import HTTPError, URLError
# Explicitly enable local imports
# Don't forget to add imported scripts to inputs of the calling command!
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

import retry

Expand Down
3 changes: 3 additions & 0 deletions build/scripts/fetch_from_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import logging
import argparse

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


Expand Down
4 changes: 3 additions & 1 deletion build/scripts/fetch_from_mds.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from __future__ import print_function
from __future__ import print_function

import os
import sys
import logging
import argparse

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


Expand Down
4 changes: 4 additions & 0 deletions build/scripts/fetch_from_sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
import urllib2
import uuid

# Explicitly enable local imports
# Don't forget to add imported scripts to inputs of the calling command!
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

import fetch_from


Expand Down
5 changes: 4 additions & 1 deletion build/scripts/fix_msvc_output.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import subprocess
import sys
import os, sys

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

Expand Down
5 changes: 4 additions & 1 deletion build/scripts/fix_py2_protobuf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import subprocess
import os
import os, sys

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


Expand Down
3 changes: 3 additions & 0 deletions build/scripts/fs_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
import shutil
import errno

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


Expand Down
5 changes: 4 additions & 1 deletion build/scripts/gen_join_srcs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import sys
import os, sys

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


Expand Down
3 changes: 3 additions & 0 deletions build/scripts/generate_mf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

import six

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


Expand Down
3 changes: 3 additions & 0 deletions build/scripts/go_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
from contextlib import contextmanager
from functools import reduce

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

Expand Down
3 changes: 3 additions & 0 deletions build/scripts/link_dyn_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import optparse
import pipes

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

Expand Down
3 changes: 3 additions & 0 deletions build/scripts/link_exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
import optparse
import textwrap

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

Expand Down
5 changes: 4 additions & 1 deletion build/scripts/link_fat_obj.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import argparse
import subprocess
import sys
import sys, os

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

from process_whole_archive_option import ProcessWholeArchiveOption
Expand Down
3 changes: 3 additions & 0 deletions build/scripts/make_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import subprocess
import sys

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


Expand Down
3 changes: 3 additions & 0 deletions build/scripts/make_java_classpath_file.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import os
import sys

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


Expand Down
3 changes: 3 additions & 0 deletions build/scripts/make_java_srclists.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
import sys
import argparse

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

Expand Down
3 changes: 3 additions & 0 deletions build/scripts/move.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import os
import sys

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

# /script/move.py <src-1> <tgt-1> <src-2> <tgt-2> ... <src-n> <tgt-n>
Expand Down
5 changes: 4 additions & 1 deletion build/scripts/process_whole_archive_option.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import os
import os, sys

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


Expand Down
3 changes: 3 additions & 0 deletions build/scripts/run_javac.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import os
import re

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

Expand Down
3 changes: 3 additions & 0 deletions build/scripts/run_msvc_wine.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import argparse
import errno

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

Expand Down
5 changes: 4 additions & 1 deletion build/scripts/sky.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import logging
import os
import os, sys
import subprocess

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


Expand Down
5 changes: 4 additions & 1 deletion build/scripts/writer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import sys
import sys, os
import argparse

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


Expand Down

0 comments on commit 7804ddb

Please sign in to comment.