aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2023-09-29 23:52:33 +0300
committerthegeorg <thegeorg@yandex-team.com>2023-09-30 00:21:59 +0300
commit866215175648a5f00ca9b617cbac975462e06f0d (patch)
tree9b67129765fe600b06d9dc8ca323c96224980d24 /contrib
parent611ec625981b1cb27dfb70f7da4a4bbcd4bb2384 (diff)
downloadydb-866215175648a5f00ca9b617cbac975462e06f0d.tar.gz
Move contrib/tools/python3/pycc to tools/py3cc
This is not a third party code, it is written by us.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/tools/python3/pycc/bin/ya.make26
-rwxr-xr-xcontrib/tools/python3/pycc/main.py19
-rw-r--r--contrib/tools/python3/pycc/ya.make11
-rw-r--r--contrib/tools/python3/ya.make1
4 files changed, 0 insertions, 57 deletions
diff --git a/contrib/tools/python3/pycc/bin/ya.make b/contrib/tools/python3/pycc/bin/ya.make
deleted file mode 100644
index bd517d970b..0000000000
--- a/contrib/tools/python3/pycc/bin/ya.make
+++ /dev/null
@@ -1,26 +0,0 @@
-PY3_PROGRAM_BIN(pycc)
-
-ENABLE(PYBUILD_NO_PYC)
-
-DISABLE(PYTHON_SQLITE3)
-
-PEERDIR(
- library/python/runtime_py3
- library/python/runtime_py3/main
-)
-
-NO_CHECK_IMPORTS()
-
-NO_PYTHON_INCLUDES()
-
-NO_PYTHON_COVERAGE()
-
-SRCDIR(
- contrib/tools/python3/pycc
-)
-
-PY_SRCS(
- MAIN main.py
-)
-
-END()
diff --git a/contrib/tools/python3/pycc/main.py b/contrib/tools/python3/pycc/main.py
deleted file mode 100755
index 996edb2bdd..0000000000
--- a/contrib/tools/python3/pycc/main.py
+++ /dev/null
@@ -1,19 +0,0 @@
-import marshal
-import sys
-
-
-def main():
- srcpathx, in_fname, out_fname = sys.argv[1:]
- srcpath = srcpathx[:-1]
-
- with open(in_fname, 'r', encoding='utf-8') as in_file:
- source = in_file.read()
-
- code = compile(source, srcpath, 'exec', dont_inherit=True)
-
- with open(out_fname, 'wb') as out_file:
- marshal.dump(code, out_file)
-
-
-if __name__ == '__main__':
- main()
diff --git a/contrib/tools/python3/pycc/ya.make b/contrib/tools/python3/pycc/ya.make
deleted file mode 100644
index 9749544dbf..0000000000
--- a/contrib/tools/python3/pycc/ya.make
+++ /dev/null
@@ -1,11 +0,0 @@
-IF (USE_PREBUILT_TOOLS)
- INCLUDE(${ARCADIA_ROOT}/build/prebuilt/contrib/tools/python3/pycc/ya.make.prebuilt)
-ENDIF()
-
-IF (NOT PREBUILT)
- INCLUDE(${ARCADIA_ROOT}/contrib/tools/python3/pycc/bin/ya.make)
-ENDIF()
-
-RECURSE(
- bin
-)
diff --git a/contrib/tools/python3/ya.make b/contrib/tools/python3/ya.make
index d1bb6895d8..b768fdef5a 100644
--- a/contrib/tools/python3/ya.make
+++ b/contrib/tools/python3/ya.make
@@ -25,7 +25,6 @@ SRCS(
END()
RECURSE(
- pycc
src
src/Lib
src/Modules