aboutsummaryrefslogtreecommitdiffstats
path: root/library/python
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-02-19 02:38:52 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-02-19 02:50:43 +0300
commitd96fa07134c06472bfee6718b5cfd1679196fc99 (patch)
tree31ec344fa9d3ff8dc038692516b6438dfbdb8a2d /library/python
parent452cf9e068aef7110e35e654c5d47eb80111ef89 (diff)
downloadydb-d96fa07134c06472bfee6718b5cfd1679196fc99.tar.gz
Sync contrib/tools/python3 layout with upstream
* Move src/ subdir contents to the top of the layout * Rename self-written lib -> lib2 to avoid CaseFolding warning from the VCS * Regenerate contrib/libs/python proxy-headers accordingly 4ccc62ac1511abcf0fed14ccade38e984e088f1e
Diffstat (limited to 'library/python')
-rw-r--r--library/python/runtime_py3/importer.pxi2
-rw-r--r--library/python/runtime_py3/main/main.c2
-rw-r--r--library/python/runtime_py3/main/ya.make4
-rw-r--r--library/python/runtime_py3/ya.make4
4 files changed, 6 insertions, 6 deletions
diff --git a/library/python/runtime_py3/importer.pxi b/library/python/runtime_py3/importer.pxi
index 0a194308c3..0bef940b70 100644
--- a/library/python/runtime_py3/importer.pxi
+++ b/library/python/runtime_py3/importer.pxi
@@ -17,7 +17,7 @@ res_ya_ide_venv = b'YA_IDE_VENV'
executable = sys.executable or 'Y_PYTHON'
sys.modules['run_import_hook'] = __resource
-# This is the prefix in contrib/tools/python3/src/Lib/ya.make.
+# This is the prefix in contrib/tools/python3/Lib/ya.make.
py_prefix = b'py/'
py_prefix_len = len(py_prefix)
diff --git a/library/python/runtime_py3/main/main.c b/library/python/runtime_py3/main/main.c
index bf80678d26..896ab0b21d 100644
--- a/library/python/runtime_py3/main/main.c
+++ b/library/python/runtime_py3/main/main.c
@@ -1,5 +1,5 @@
#include <Python.h>
-#include <contrib/tools/python3/src/Include/internal/pycore_runtime.h> // _PyRuntime_Initialize()
+#include <contrib/tools/python3/Include/internal/pycore_runtime.h> // _PyRuntime_Initialize()
#include <stdlib.h>
#include <string.h>
diff --git a/library/python/runtime_py3/main/ya.make b/library/python/runtime_py3/main/ya.make
index bfd0955b0f..13449602a9 100644
--- a/library/python/runtime_py3/main/ya.make
+++ b/library/python/runtime_py3/main/ya.make
@@ -1,12 +1,12 @@
LIBRARY()
PEERDIR(
- contrib/tools/python3/src
+ contrib/tools/python3
library/cpp/resource
)
ADDINCL(
- contrib/tools/python3/src/Include
+ contrib/tools/python3/Include
)
CFLAGS(
diff --git a/library/python/runtime_py3/ya.make b/library/python/runtime_py3/ya.make
index 58e05a7295..05687fdd8f 100644
--- a/library/python/runtime_py3/ya.make
+++ b/library/python/runtime_py3/ya.make
@@ -3,8 +3,8 @@ PY3_LIBRARY()
STYLE_PYTHON()
PEERDIR(
- contrib/tools/python3/src
- contrib/tools/python3/lib/py
+ contrib/tools/python3
+ contrib/tools/python3/lib2/py
library/cpp/resource
)