diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /contrib/tools/python | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/python')
-rw-r--r-- | contrib/tools/python/pyconfig.inc | 30 | ||||
-rw-r--r-- | contrib/tools/python/src/Include/pyport.h | 4 | ||||
-rw-r--r-- | contrib/tools/python/src/config_init.c | 12 | ||||
-rw-r--r-- | contrib/tools/python/src/config_map.c | 12 | ||||
-rw-r--r-- | contrib/tools/python/ya.make | 8 |
5 files changed, 33 insertions, 33 deletions
diff --git a/contrib/tools/python/pyconfig.inc b/contrib/tools/python/pyconfig.inc index b7ea0b273a..01da7d4566 100644 --- a/contrib/tools/python/pyconfig.inc +++ b/contrib/tools/python/pyconfig.inc @@ -1,9 +1,9 @@ -NO_COMPILER_WARNINGS() - +NO_COMPILER_WARNINGS() + ENABLE(USE_ARCADIA_PYTHON) SET(PYTHON_DIR "contrib/tools/python") -SET(PYTHON_SRC_DIR "${PYTHON_DIR}/src") +SET(PYTHON_SRC_DIR "${PYTHON_DIR}/src") SET(PYTHON_ROOT "${ARCADIA_ROOT}/${PYTHON_DIR}") SET(PYTHON_SRC_ROOT "${ARCADIA_ROOT}/${PYTHON_SRC_DIR}") @@ -16,33 +16,33 @@ CFLAGS( -DUNQUOTED_VERSION=2.7 ) -IF (NOT WIN32) +IF (NOT WIN32) EXTRALIBS(-lutil) - IF (LINUX) + IF (LINUX) EXTRALIBS(-ldl) CFLAGS( -DUNQUOTED_PYTHONPATH=:plat-linux2 -DUNQUOTED_PLATFORM=linux2 ) - ELSEIF (FREEBSD) + ELSEIF (FREEBSD) CFLAGS( -DUNQUOTED_PYTHONPATH=:plat-freebsd${FREEBSD_VER} -DUNQUOTED_PLATFORM=freebsd${FREEBSD_VER} ) - ELSEIF (DARWIN) - CFLAGS( + ELSEIF (DARWIN) + CFLAGS( -DUNQUOTED_PYTHONPATH=:plat-darwin -DUNQUOTED_PLATFORM=darwin - ) + ) LDFLAGS( -framework SystemConfiguration -framework CoreFoundation ) - ENDIF () -ENDIF () - -IF (MSVC) - CFLAGS(/DXMLCALL= /DXMLIMPORT=) -ENDIF () + ENDIF () +ENDIF () + +IF (MSVC) + CFLAGS(/DXMLCALL= /DXMLIMPORT=) +ENDIF () diff --git a/contrib/tools/python/src/Include/pyport.h b/contrib/tools/python/src/Include/pyport.h index 8e273b9576..ad2ff5929a 100644 --- a/contrib/tools/python/src/Include/pyport.h +++ b/contrib/tools/python/src/Include/pyport.h @@ -759,7 +759,7 @@ extern int fdatasync(int); BeOS and cygwin are the only other autoconf platform requiring special linkage handling and both of these use __declspec(). */ -#if defined(__BEOS__) +#if defined(__BEOS__) # define HAVE_DECLSPEC_DLL #endif @@ -774,7 +774,7 @@ extern int fdatasync(int); #endif /* only get special linkage if built as shared or platform is Cygwin */ -#if defined(Py_ENABLE_SHARED) +#if defined(Py_ENABLE_SHARED) # if defined(HAVE_DECLSPEC_DLL) # ifdef Py_BUILD_CORE # define PyAPI_FUNC(RTYPE) __declspec(dllexport) RTYPE diff --git a/contrib/tools/python/src/config_init.c b/contrib/tools/python/src/config_init.c index 97a05a9893..2fa47000b8 100644 --- a/contrib/tools/python/src/config_init.c +++ b/contrib/tools/python/src/config_init.c @@ -58,10 +58,10 @@ extern void init_scproxy(void); #endif #endif -#ifdef _CYGWIN_ -extern void init_multiprocessing(void); -#endif - +#ifdef _CYGWIN_ +extern void init_multiprocessing(void); +#endif + #ifdef _UNIX_ extern void init_socket(void); extern void initcrypt(void); @@ -82,8 +82,8 @@ extern void init_socket(void); extern void initnt(void); extern void initpyexpat(void); extern void initselect(void); -extern void initmsvcrt(void); -extern void init_subprocess(void); +extern void initmsvcrt(void); +extern void init_subprocess(void); extern void init_winreg(void); #endif diff --git a/contrib/tools/python/src/config_map.c b/contrib/tools/python/src/config_map.c index 4463fc44af..6bfe125ddd 100644 --- a/contrib/tools/python/src/config_map.c +++ b/contrib/tools/python/src/config_map.c @@ -58,10 +58,10 @@ #endif #endif -#ifdef _CYGWIN_ -{"_multiprocessing", init_multiprocessing}, -#endif - +#ifdef _CYGWIN_ +{"_multiprocessing", init_multiprocessing}, +#endif + #ifdef _UNIX_ {"_socket", init_socket}, {"crypt", initcrypt}, @@ -82,8 +82,8 @@ {"nt", initnt}, {"pyexpat", initpyexpat}, {"select", initselect}, -{"msvcrt", initmsvcrt}, -{"_subprocess", init_subprocess}, +{"msvcrt", initmsvcrt}, +{"_subprocess", init_subprocess}, {"_winreg", init_winreg}, #endif diff --git a/contrib/tools/python/ya.make b/contrib/tools/python/ya.make index 5697d4ea77..fc95aaca64 100644 --- a/contrib/tools/python/ya.make +++ b/contrib/tools/python/ya.make @@ -1,17 +1,17 @@ PROGRAM(python) OWNER(g:contrib orivej) - + LICENSE(PSF-2.0) VERSION(2.7.16) ORIGINAL_SOURCE(https://github.com/python/cpython) -PEERDIR( - contrib/tools/python/libpython +PEERDIR( + contrib/tools/python/libpython contrib/tools/python/src/Modules/_sqlite -) +) END() |