aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/python
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
committeralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
commitbf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch)
tree1d1df72c0541a59a81439842f46d95396d3e7189 /contrib/libs/python
parent8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff)
downloadydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz
add ymake export to ydb
Diffstat (limited to 'contrib/libs/python')
-rw-r--r--contrib/libs/python/Include/ya.make23
-rw-r--r--contrib/libs/python/ya.make46
2 files changed, 69 insertions, 0 deletions
diff --git a/contrib/libs/python/Include/ya.make b/contrib/libs/python/Include/ya.make
new file mode 100644
index 0000000000..970d0b1b1d
--- /dev/null
+++ b/contrib/libs/python/Include/ya.make
@@ -0,0 +1,23 @@
+PY23_LIBRARY()
+
+WITHOUT_LICENSE_TEXTS()
+
+LICENSE(YandexOpen)
+
+NO_PYTHON_INCLUDES()
+
+ADDINCL(GLOBAL contrib/libs/python/Include)
+
+IF (PYTHON2)
+ CFLAGS(GLOBAL -DUSE_PYTHON2)
+ PEERDIR(
+ contrib/tools/python/lib
+ )
+ELSE()
+ CFLAGS(GLOBAL -DUSE_PYTHON3)
+ PEERDIR(
+ contrib/tools/python3/src
+ )
+ENDIF()
+
+END()
diff --git a/contrib/libs/python/ya.make b/contrib/libs/python/ya.make
new file mode 100644
index 0000000000..95e7f8744e
--- /dev/null
+++ b/contrib/libs/python/ya.make
@@ -0,0 +1,46 @@
+PY23_LIBRARY()
+
+LICENSE(YandexOpen)
+
+LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
+
+NO_PYTHON_INCLUDES()
+
+IF (USE_ARCADIA_PYTHON)
+ PEERDIR(
+ contrib/libs/python/Include
+ library/python/symbols/module
+ library/python/symbols/libc
+ library/python/symbols/python
+ )
+ IF (NOT OS_WINDOWS AND NOT OPENSOURCE)
+ PEERDIR(
+ library/python/symbols/uuid
+ )
+ ENDIF()
+ IF (MODULE_TAG == "PY2")
+ PEERDIR(
+ contrib/tools/python/lib
+ library/python/runtime
+ )
+ ELSE()
+ PEERDIR(
+ contrib/tools/python3/lib
+ library/python/runtime_py3
+ )
+ ENDIF()
+ELSE()
+ IF (USE_SYSTEM_PYTHON)
+ PEERDIR(
+ build/platform/python
+ )
+ ELSE()
+ CFLAGS(GLOBAL $PYTHON_INCLUDE)
+ ENDIF()
+ENDIF()
+
+END()
+
+RECURSE(
+ Include
+)