aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authormpereskokova <mpereskokova@yandex-team.com>2024-04-16 18:19:42 +0300
committermpereskokova <mpereskokova@yandex-team.com>2024-04-16 18:29:00 +0300
commit6a420b1b5db93711a8e95b08776247cedaa0259f (patch)
treeba46dbd49e23f336f335cf11a0a5a9e2b0b08d63 /build
parent9fed6f36e061d4262bb4095c91ca400775f8b8c1 (diff)
downloadydb-6a420b1b5db93711a8e95b08776247cedaa0259f.tar.gz
YT-21446: Add python udfs dependency in piglet
a960b2510dc0ed8b11807d92f1826459a8c9a5c8
Diffstat (limited to 'build')
-rw-r--r--build/platform/python/ldflags/ya.make17
1 files changed, 17 insertions, 0 deletions
diff --git a/build/platform/python/ldflags/ya.make b/build/platform/python/ldflags/ya.make
new file mode 100644
index 0000000000..0115ed7256
--- /dev/null
+++ b/build/platform/python/ldflags/ya.make
@@ -0,0 +1,17 @@
+RESOURCES_LIBRARY()
+
+SUBSCRIBER(g:contrib)
+
+IF (USE_SYSTEM_PYTHON)
+ IF (OS_LINUX)
+ LDFLAGS("-L$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/lib/x86_64-linux-gnu -lpython${PY_VERSION}")
+ ELSEIF (OS_DARWIN)
+ LDFLAGS("-L$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/Python.framework/Versions/${PY_FRAMEWORK_VERSION}/lib -lpython${PY_VERSION}")
+ ELSEIF (OS_WINDOWS)
+ LDFLAGS("/LIBPATH:$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/libs")
+ ENDIF()
+ELSEIF (NOT USE_ARCADIA_PYTHON)
+ LDFLAGS($PYTHON_LDFLAGS $PYTHON_LIBRARIES)
+ENDIF()
+
+END()