aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.com>2024-03-06 07:26:10 +0300
committershadchin <shadchin@yandex-team.com>2024-03-06 07:38:15 +0300
commitdbf3c02f67c789953fdda0d633273619df7c7e93 (patch)
tree29114f7bfb0c0613ba2533e6f1a891bc6d6e989c /contrib
parent83ebfa17c1534617b0b00d1b94f063c46956173a (diff)
downloadydb-dbf3c02f67c789953fdda0d633273619df7c7e93.tar.gz
Simplify layout for Python 3
4c8d17f5092930dba3a969736cfed1def0bd4df1
Diffstat (limited to 'contrib')
-rw-r--r--contrib/tools/python3/Modules/ya.make188
-rw-r--r--contrib/tools/python3/lib2/ya.make1
-rw-r--r--contrib/tools/python3/ya.make147
3 files changed, 144 insertions, 192 deletions
diff --git a/contrib/tools/python3/Modules/ya.make b/contrib/tools/python3/Modules/ya.make
deleted file mode 100644
index 2e0a971707..0000000000
--- a/contrib/tools/python3/Modules/ya.make
+++ /dev/null
@@ -1,188 +0,0 @@
-# Generated by devtools/yamaker.
-
-LIBRARY()
-
-VERSION(3.12.2)
-
-ORIGINAL_SOURCE(https://github.com/python/cpython/archive/v3.12.2.tar.gz)
-
-LICENSE(Python-2.0)
-
-PEERDIR(
- contrib/libs/expat
- contrib/libs/libbz2
- contrib/libs/libc_compat
- contrib/libs/lzma
- contrib/libs/openssl
- contrib/libs/zlib
- contrib/restricted/libffi
- library/cpp/sanitizer/include
-)
-
-ADDINCL(
- contrib/libs/expat
- contrib/libs/libbz2
- contrib/restricted/libffi/include
- contrib/tools/python3/Include
- contrib/tools/python3/Include/internal
- contrib/tools/python3/Modules
- contrib/tools/python3/Modules/_decimal/libmpdec
- contrib/tools/python3/Modules/_hacl/include
-)
-
-NO_COMPILER_WARNINGS()
-
-NO_RUNTIME()
-
-CFLAGS(
- -DPy_BUILD_CORE
- -DPy_BUILD_CORE_BUILTIN
-)
-
-SRCS(
- _abc.c
- _asynciomodule.c
- _bisectmodule.c
- _blake2/blake2b_impl.c
- _blake2/blake2module.c
- _blake2/blake2s_impl.c
- _bz2module.c
- _codecsmodule.c
- _collectionsmodule.c
- _contextvarsmodule.c
- _csv.c
- _ctypes/_ctypes.c
- _ctypes/callbacks.c
- _ctypes/callproc.c
- _ctypes/cfield.c
- _ctypes/stgdict.c
- _datetimemodule.c
- _decimal/_decimal.c
- _decimal/libmpdec/basearith.c
- _decimal/libmpdec/constants.c
- _decimal/libmpdec/context.c
- _decimal/libmpdec/convolute.c
- _decimal/libmpdec/crt.c
- _decimal/libmpdec/difradix2.c
- _decimal/libmpdec/fnt.c
- _decimal/libmpdec/fourstep.c
- _decimal/libmpdec/io.c
- _decimal/libmpdec/mpalloc.c
- _decimal/libmpdec/mpdecimal.c
- _decimal/libmpdec/mpsignal.c
- _decimal/libmpdec/numbertheory.c
- _decimal/libmpdec/sixstep.c
- _decimal/libmpdec/transpose.c
- _elementtree.c
- _functoolsmodule.c
- _hacl/Hacl_Hash_MD5.c
- _hacl/Hacl_Hash_SHA1.c
- _hacl/Hacl_Hash_SHA2.c
- _hacl/Hacl_Hash_SHA3.c
- _hashopenssl.c
- _heapqmodule.c
- _io/_iomodule.c
- _io/bufferedio.c
- _io/bytesio.c
- _io/fileio.c
- _io/iobase.c
- _io/stringio.c
- _io/textio.c
- _io/winconsoleio.c
- _json.c
- _localemodule.c
- _lsprof.c
- _lzmamodule.c
- _multiprocessing/multiprocessing.c
- _multiprocessing/posixshmem.c
- _multiprocessing/semaphore.c
- _opcode.c
- _operator.c
- _pickle.c
- _queuemodule.c
- _randommodule.c
- _sre/sre.c
- _ssl.c
- _stat.c
- _statisticsmodule.c
- _struct.c
- _threadmodule.c
- _tracemalloc.c
- _typingmodule.c
- _weakref.c
- _xxinterpchannelsmodule.c
- _xxsubinterpretersmodule.c
- _xxtestfuzz/_xxtestfuzz.c
- _xxtestfuzz/fuzzer.c
- _zoneinfo.c
- arraymodule.c
- atexitmodule.c
- audioop.c
- binascii.c
- cjkcodecs/_codecs_cn.c
- cjkcodecs/_codecs_hk.c
- cjkcodecs/_codecs_iso2022.c
- cjkcodecs/_codecs_jp.c
- cjkcodecs/_codecs_kr.c
- cjkcodecs/_codecs_tw.c
- cjkcodecs/multibytecodec.c
- cmathmodule.c
- config.c
- errnomodule.c
- faulthandler.c
- gcmodule.c
- getbuildinfo.c
- getpath.c
- itertoolsmodule.c
- main.c
- mathmodule.c
- md5module.c
- mmapmodule.c
- posixmodule.c
- pyexpat.c
- rotatingtree.c
- selectmodule.c
- sha1module.c
- sha2module.c
- sha3module.c
- signalmodule.c
- socketmodule.c
- symtablemodule.c
- timemodule.c
- unicodedata.c
- zlibmodule.c
-)
-
-IF (OS_WINDOWS)
- SRCS(
- _winapi.c
- overlapped.c
- )
-ELSE()
- SRCS(
- _cryptmodule.c
- _posixsubprocess.c
- fcntlmodule.c
- grpmodule.c
- pwdmodule.c
- resource.c
- syslogmodule.c
- termios.c
- )
-
- IF (OS_DARWIN)
- SRCS(
- _scproxy.c
- )
- ELSEIF (OS_LINUX)
- IF (NOT MUSL)
- EXTRALIBS(crypt)
- ENDIF()
-
- SRCS(
- spwdmodule.c
- )
- ENDIF()
-ENDIF()
-
-END()
diff --git a/contrib/tools/python3/lib2/ya.make b/contrib/tools/python3/lib2/ya.make
index 3fb8db5164..bca260dd3d 100644
--- a/contrib/tools/python3/lib2/ya.make
+++ b/contrib/tools/python3/lib2/ya.make
@@ -7,7 +7,6 @@ LICENSE(Python-2.0)
PEERDIR(
contrib/tools/python3
contrib/tools/python3/Lib
- contrib/tools/python3/Modules
)
SUPPRESSIONS(lsan.supp)
diff --git a/contrib/tools/python3/ya.make b/contrib/tools/python3/ya.make
index 6bc4b6d1bf..24173194fc 100644
--- a/contrib/tools/python3/ya.make
+++ b/contrib/tools/python3/ya.make
@@ -9,14 +9,25 @@ ORIGINAL_SOURCE(https://github.com/python/cpython/archive/v3.12.2.tar.gz)
LICENSE(Python-2.0)
PEERDIR(
+ contrib/libs/expat
+ contrib/libs/libbz2
contrib/libs/libc_compat
- contrib/tools/python3/Modules
+ contrib/libs/lzma
+ contrib/libs/openssl
+ contrib/libs/zlib
+ contrib/restricted/libffi
library/cpp/sanitizer/include
)
ADDINCL(
+ contrib/libs/expat
+ contrib/libs/libbz2
+ contrib/restricted/libffi/include
contrib/tools/python3/Include
contrib/tools/python3/Include/internal
+ contrib/tools/python3/Modules
+ contrib/tools/python3/Modules/_decimal/libmpdec
+ contrib/tools/python3/Modules/_hacl/include
contrib/tools/python3/PC
)
@@ -26,6 +37,7 @@ NO_UTIL()
CFLAGS(
-DPy_BUILD_CORE
+ -DPy_BUILD_CORE_BUILTIN
)
IF (CLANG_CL)
@@ -54,6 +66,117 @@ ELSEIF (OS_WINDOWS)
ENDIF()
SRCS(
+ Modules/_abc.c
+ Modules/_asynciomodule.c
+ Modules/_bisectmodule.c
+ Modules/_blake2/blake2b_impl.c
+ Modules/_blake2/blake2module.c
+ Modules/_blake2/blake2s_impl.c
+ Modules/_bz2module.c
+ Modules/_codecsmodule.c
+ Modules/_collectionsmodule.c
+ Modules/_contextvarsmodule.c
+ Modules/_csv.c
+ Modules/_ctypes/_ctypes.c
+ Modules/_ctypes/callbacks.c
+ Modules/_ctypes/callproc.c
+ Modules/_ctypes/cfield.c
+ Modules/_ctypes/stgdict.c
+ Modules/_datetimemodule.c
+ Modules/_decimal/_decimal.c
+ Modules/_decimal/libmpdec/basearith.c
+ Modules/_decimal/libmpdec/constants.c
+ Modules/_decimal/libmpdec/context.c
+ Modules/_decimal/libmpdec/convolute.c
+ Modules/_decimal/libmpdec/crt.c
+ Modules/_decimal/libmpdec/difradix2.c
+ Modules/_decimal/libmpdec/fnt.c
+ Modules/_decimal/libmpdec/fourstep.c
+ Modules/_decimal/libmpdec/io.c
+ Modules/_decimal/libmpdec/mpalloc.c
+ Modules/_decimal/libmpdec/mpdecimal.c
+ Modules/_decimal/libmpdec/mpsignal.c
+ Modules/_decimal/libmpdec/numbertheory.c
+ Modules/_decimal/libmpdec/sixstep.c
+ Modules/_decimal/libmpdec/transpose.c
+ Modules/_elementtree.c
+ Modules/_functoolsmodule.c
+ Modules/_hacl/Hacl_Hash_MD5.c
+ Modules/_hacl/Hacl_Hash_SHA1.c
+ Modules/_hacl/Hacl_Hash_SHA2.c
+ Modules/_hacl/Hacl_Hash_SHA3.c
+ Modules/_hashopenssl.c
+ Modules/_heapqmodule.c
+ Modules/_io/_iomodule.c
+ Modules/_io/bufferedio.c
+ Modules/_io/bytesio.c
+ Modules/_io/fileio.c
+ Modules/_io/iobase.c
+ Modules/_io/stringio.c
+ Modules/_io/textio.c
+ Modules/_io/winconsoleio.c
+ Modules/_json.c
+ Modules/_localemodule.c
+ Modules/_lsprof.c
+ Modules/_lzmamodule.c
+ Modules/_multiprocessing/multiprocessing.c
+ Modules/_multiprocessing/posixshmem.c
+ Modules/_multiprocessing/semaphore.c
+ Modules/_opcode.c
+ Modules/_operator.c
+ Modules/_pickle.c
+ Modules/_queuemodule.c
+ Modules/_randommodule.c
+ Modules/_sre/sre.c
+ Modules/_ssl.c
+ Modules/_stat.c
+ Modules/_statisticsmodule.c
+ Modules/_struct.c
+ Modules/_threadmodule.c
+ Modules/_tracemalloc.c
+ Modules/_typingmodule.c
+ Modules/_weakref.c
+ Modules/_xxinterpchannelsmodule.c
+ Modules/_xxsubinterpretersmodule.c
+ Modules/_xxtestfuzz/_xxtestfuzz.c
+ Modules/_xxtestfuzz/fuzzer.c
+ Modules/_zoneinfo.c
+ Modules/arraymodule.c
+ Modules/atexitmodule.c
+ Modules/audioop.c
+ Modules/binascii.c
+ Modules/cjkcodecs/_codecs_cn.c
+ Modules/cjkcodecs/_codecs_hk.c
+ Modules/cjkcodecs/_codecs_iso2022.c
+ Modules/cjkcodecs/_codecs_jp.c
+ Modules/cjkcodecs/_codecs_kr.c
+ Modules/cjkcodecs/_codecs_tw.c
+ Modules/cjkcodecs/multibytecodec.c
+ Modules/cmathmodule.c
+ Modules/config.c
+ Modules/errnomodule.c
+ Modules/faulthandler.c
+ Modules/gcmodule.c
+ Modules/getbuildinfo.c
+ Modules/getpath.c
+ Modules/itertoolsmodule.c
+ Modules/main.c
+ Modules/mathmodule.c
+ Modules/md5module.c
+ Modules/mmapmodule.c
+ Modules/posixmodule.c
+ Modules/pyexpat.c
+ Modules/rotatingtree.c
+ Modules/selectmodule.c
+ Modules/sha1module.c
+ Modules/sha2module.c
+ Modules/sha3module.c
+ Modules/signalmodule.c
+ Modules/socketmodule.c
+ Modules/symtablemodule.c
+ Modules/timemodule.c
+ Modules/unicodedata.c
+ Modules/zlibmodule.c
Objects/abstract.c
Objects/boolobject.c
Objects/bytearrayobject.c
@@ -177,6 +300,8 @@ SRCS(
IF (OS_WINDOWS)
SRCS(
+ Modules/_winapi.c
+ Modules/overlapped.c
PC/WinMain.c
PC/invalid_parameter_handler.c
PC/msvcrtmodule.c
@@ -186,12 +311,29 @@ IF (OS_WINDOWS)
)
ELSE()
SRCS(
+ Modules/_cryptmodule.c
+ Modules/_posixsubprocess.c
+ Modules/fcntlmodule.c
+ Modules/grpmodule.c
+ Modules/pwdmodule.c
+ Modules/resource.c
+ Modules/syslogmodule.c
+ Modules/termios.c
Python/dynload_shlib.c
)
ENDIF()
-IF (OS_LINUX)
+IF (OS_DARWIN)
+ SRCS(
+ Modules/_scproxy.c
+ )
+ELSEIF (OS_LINUX)
+ IF (NOT MUSL)
+ EXTRALIBS(crypt)
+ ENDIF()
+
SRCS(
+ Modules/spwdmodule.c
Python/asm_trampoline.S
)
ENDIF()
@@ -204,7 +346,6 @@ END()
RECURSE(
Lib
- Modules
Modules/_sqlite
bin
)