summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3
Commit message (Collapse)AuthorAgeFilesLines
* feat python: always compile Python libs with -O3antoshkka6 days2-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many people use Python to test their C++ binaries built in Debug (that is a common case in RideTech). Debug built Python is very slow, almost noone debugs the Python interpreter itself, so this patch forces the Python to be always built with optimizations. Tests run (3 iteratons) with -O3 compiled Python (this patch): ``` real 5m20.239s user 17m51.171s sys 1m38.676s real 5m31.585s user 17m55.240s sys 1m38.903s real 5m20.914s user 17m57.854s sys 1m39.039s ``` Same tests (2 iterations) with default Python in debug (current trunk): ``` real 13m43.975s user 46m29.006s sys 2m13.313s real 13m29.301s user 46m55.216s sys 2m10.173s ``` For other service: ``` # This patch real 1m24.427s user 6m56.296s sys 0m39.936s real 1m12.953s user 7m34.245s sys 0m37.000s real 1m14.612s user 7m27.097s sys 0m36.839s # Trunk: real 1m59.555s user 13m40.203s sys 0m35.482s real 2m2.459s user 13m50.473s sys 0m34.215s real 1m59.250s user 13m34.304s sys 0m32.218s ``` And another service: ``` # This patch real 0m36.629s user 0m48.045s sys 0m2.074s # Trunk: real 1m56.316s user 2m16.525s sys 0m3.732s ``` commit_hash:9fa58184be777973e5f8c4aebc3811ca348299b6
* Update Python 3 to 3.13.13shadchin2026-05-07112-3326/+4043
| | | | commit_hash:526db1f6570443324e2690db042314848cd47d2e
* Remove `contrib/tools/python3/lib2/ya.make`shadchin2026-05-061-14/+0
| | | | | - commit_hash:77d7b7c36711268f6d5e93135cb3777b152c2f16
* Replace deprecated `Py_UNICODE` with `wchar_t` for Python 3.13 compatibilityshadchin2026-04-182-6/+1
| | | | | Since `Py_UNICODE` is just a typedef for `wchar_t` in Python 3, replace it with `wchar_t` in Cython typedefs, C++ headers, and stringlib macros. Python 2 code paths retain `Py_UNICODE` via #if guards. commit_hash:7bed62e2231a8fde3adc6317e8a41dd060895e24
* Rework `pyconfig.h`shadchin2026-04-118-53/+50
| | | | commit_hash:826de8ce55126c9f2a15bb1dcdd1227e0e069615
* Simplify `pyconfig.h` for Darwinshadchin2026-04-113-14/+2
| | | | commit_hash:167c3aa8fca30250e466b0451025d41733a35a6f
* Intermediate changesrobot-piglet2026-04-111-1/+3
| | | | commit_hash:f90d0ec84cd58ff652eedd9995c5e157be068678
* Prefer CA bundle set by SSL_CERT_FILE and SSL_CERT_DIR (common part)Konstantin Khlebnikov2026-03-112-3/+5
| | | | | | | | | | | | | | | | - **library/cpp/openssl: prefer CA set by SSL_CERT_FILE and SSL_CERT_DIR** - **contrib/tools/python3: prefer CA set by SSL_CERT_FILE and SSL_CERT_DIR** - **library/python/certifi: prefer CA set by SSL_CERT_FILE and SSL_CERT_DIR** First three commits from PR #1607 to change common part separately. --- Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1635 Co-authored-by: shadchin <[email protected]> Co-authored-by: shadchin <[email protected]> commit_hash:21db0cd5fe3b4af267dcf5ec4d2753fbdd49ba1e
* Fix REPL for Macshadchin2026-03-1011-121/+662
| | | | commit_hash:16d75ec7f9fd46d5373a5abb04feb9b63939bf49
* ya tool black release 8robot-contrib2026-03-071-1/+0
| | | | | #| || **<a href="https://nda.ya.ru/t/NmXL8DSH7W8pjd" target="_blank">![](https://nda.ya.ru/t/mAiQIjHx7Mm3JC =30x) Echo tests</a>** || |# commit_hash:595f1e5ce2f0b1215088b7c8d2b79f07955f9a4b
* Move `lsan.supp` in `contrib/tools/python3`shadchin2026-02-084-3/+3
| | | | commit_hash:9bbc2068c32ccefe80bab13471a8e78d70b64069
* Cleanupshadchin2026-02-081-6/+0
| | | | commit_hash:5156a27dc07a49d591229bc422bd96639091dfc8
* Update Python 3 to 3.13.12shadchin2026-02-07101-796/+1833
| | | | commit_hash:71d3efea437a769b2b7910d196120bb02587046e
* Import Python 3.13.11shadchin2026-02-031135-292132/+211770
| | | | commit_hash:bbb53cefb159aa3e7afaa475fd19d5a03b66945f
* Switch Python 3 on contrib/libs/blake2shadchin2026-01-2224-3247/+28
| | | | commit_hash:71d95ae6feb5796edc36f16859e57cf07a56a184
* Fix `__name__` for builtin modulesshadchin2026-01-142-0/+31
| | | | | | | | | | | | | | | | | | | | | Такой же подход есть у загрузки so-расширений, но для builtin его из коробки нет, так как builtin в upstream используется только для стандартной библиотеки, а там нет подпакетов, там только модули и у них нет проблемы с именем. До патча: ```ipython In [1]: import osgeo._gdal In [2]: osgeo._gdal.__name__ Out[2]: '_gdal' # <- Потерялось имя пакета, должно быть `osgeo._gdal` ``` После патча: ```ipython In [1]: import osgeo._gdal In [2]: osgeo._gdal.__name__ Out[2]: 'osgeo._gdal' ``` commit_hash:fee95110a58cae8395a46598bf8f0b80e42b029a
* Intermediate changesrobot-piglet2026-01-0520-133/+72
| | | | commit_hash:1a43bcb7f55bea5bd087ad537be5880e0301a09b
* Update contrib/python/hypothesis/py3 to 6.136.2robot-contrib2025-11-152-1/+12
| | | | commit_hash:aaf72f1c1b3aa7cf161d27d86c119860b25c0b21
* Update Python 3 to 3.12.12shadchin2025-10-1414-126/+257
| | | | commit_hash:ef97148212b5398ba2ed413d6056b6b8cf935cd8
* Intermediate changesrobot-piglet2025-10-135-0/+1160
| | | | commit_hash:2616fa918b284019168fb12ab861499222d40647
* Fix set `sys.abiflags` for pydebug mode (try 2)shadchin2025-09-055-20/+9
| | | | commit_hash:bb15d1d813a9eb8cd246c568566aa3a5d574b0b4
* Fix set `sys.abiflags` for pydebug modeshadchin2025-08-192-2/+20
| | | | commit_hash:345dd2e17cbc1b09a5c8825b41fce0c64dd43eb9
* Moved patch to `jupyter-core`shadchin2025-07-212-12/+1
| | | | commit_hash:18ebf710692df871dceae55c907824e5582537fd
* Update Python 3 to 3.12.11shadchin2025-06-1823-3529/+4404
| | | | commit_hash:0054a0810a95d3f1aa3d36410976d43e03ff7e86
* Update Python 3 to 3.12.10shadchin2025-06-1393-19979/+15825
| | | | commit_hash:dd2398e159fe1d72ea6b12da52fccc933a41a785
* Intermediate changesrobot-piglet2025-05-071-1/+1
| | | | commit_hash:8e91f1bc83ec2f7c5c04762b6c4a7343ab3506f2
* Subinterpretor compatible __res module (2nd attempt)snermolaev2025-04-294-2/+19
| | | | | | | Cython is not yet subinterpreter compatible. There are no ETA when cython is going to support subinterpreters. This PR removes cython from hermetic python imoprt hooks in order to make them subinterpretr-compatible. commit_hash:427b6f9db6afa6695659ee147621e1ccb391d3cb
* Fix import datetime for subinterpreterssnermolaev2025-04-281-0/+1
| | | | | _pydatetime module should be imported when working in subinterpreters mode since _datetime module is not yet ready for subinterpreters (contrib/tools/python3/Lib/datetime.py), but we get **Warn: ModuleNotFoundError: No module named '_pydatetime'**. commit_hash:4c3ebf1f1a231edcca1580943d1e8a1661bcfa5b
* Revert "Subinterpretor compatible __res module" rXXXXXXsnermolaev2025-04-154-19/+2
| | | | commit_hash:1d9f5675b9d3ddaa44db4472376a06ad3e811e2d
* Subinterpretor compatible __res modulesnermolaev2025-04-144-2/+19
| | | | | | | Cython is not yet subinterpreter compatible. There are no ETA when cython is going to support subinterpreters. This PR removes cython from hermetic python imoprt hooks in order to make them subinterpretr-compatible. commit_hash:1b067c37f55a4f1d9a6172df7009c75231cc1e25
* Update Python 3 to 3.12.9shadchin2025-02-1688-545/+876
| | | | commit_hash:c8651982d81e18f18e037fb247cc6ae53c4fa7f1
* Update Python 3 to 3.12.8shadchin2024-12-23110-7670/+8851
| | | | commit_hash:c20045b8a987d8720e1f3328270357491d5530f3
* Make comment with pr infozhukoff-pavel2024-12-091-0/+11
| | | | commit_hash:f132b180e59a3a0ee4e3c96f061bc6b2c093c858
* Remove unused sysincl for crtassem.hthegeorg2024-12-062-1/+2
| | | | commit_hash:7c16f722239365919c2cf805bd2134a9a523d4ef
* Update Python 3 to 3.12.7shadchin2024-10-2791-7125/+8435
| | | | commit_hash:052a122399d67f1ea5dfbc5f6457e3e06200becf
* publishFullContrib: true for ydbmaxim-yurchuk2024-10-09118-0/+23961
| | | | | <HIDDEN_URL> commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
* Intermediate changesrobot-piglet2024-10-077-0/+304
| | | | commit_hash:2835e21dc055a3e814c5f562f3a876691a772ea2
* Intermediate changesrobot-piglet2024-10-073-0/+55
| | | | commit_hash:d453d88ab4310a06bd5760d4862918f509e082ce
* Update Python 3 to 3.12.6shadchin2024-09-1747-14413/+14610
| | | | commit_hash:43ed87a61b9efe3a87682fda1f0bff6f7b422cc9
* Cleanup build/sysincl/linux.ymlthegeorg2024-09-041-1/+1
| | | | 9396b0cd7a984fa5c915eed07e29cd357af28a12
* Simplify Modules/_sqliteshadchin2024-08-241-7/+1
| | | | 0fe364013bff008d9bce51cfd54d2810ba54b2a4
* Intermediate changesrobot-piglet2024-08-242-0/+4
|
* Intermediate changesrobot-piglet2024-08-232-31/+2
|
* Switch on platform_dispatchersshadchin2024-08-235-32/+32
| | | | 93438876ebd102c07d52ce42cc48e5465a7277ff
* Prepare to switch on platform_dispatchers (part 1)shadchin2024-08-192-15/+15
| | | | 664a0b8555cd24bd063b0fa871e3e5693e856e7d
* Sync and cleanup pyconfig.hshadchin2024-08-191-10/+14
| | | | 535e12a669585636772c3f8d402cdf65701eafba
* Switch on delta config for Darwin x86_64shadchin2024-08-184-1953/+16
| | | | 60bbb4cee24aa9a22b7dcc86a6a4adc0f7089c36
* Intermediate changesrobot-piglet2024-08-181-2/+0
|
* Update Python 3 to 3.12.5shadchin2024-08-17118-22126/+22417
| | | | | https://docs.python.org/release/3.12.5/whatsnew/changelog.html#python-3-12-5-final de86cdeacd3a8653b9ec36e87975886fafcf6dc2
* fix _io.TextIOWrapper.write() write during flushnechda2024-08-041-9/+22
| | | | 816f3097d548522bcfae2b763098747304285d0f