159 Commits
Author SHA1 Message Date
Rohit Mulani 26de18044d python-build: log and print the build commands of the other flavors too (#3655) 2026-11-27 03:58:53 +03:00
native-api aa6882a15c Merge pull request #3651 from macayu17/fix/binary-find-misc
python-build: miscellaneous fixes
2026-11-27 01:36:07 +03:00
Rohit Mulani e374f5625f python-build: print configure and make commands to the console (without envvars) (#3645) 2026-11-26 21:50:52 +03:00
Rohit Mulani 8eb39f5070 python-build: Add rustpython-dev (#3642) 2026-11-25 23:24:04 +03:00
Ayush 26bee1720f python-build: preserve lsb_release query failures 2026-11-22 06:04:45 +03:00
Rohit Mulani 186b350c85 python-build: log configure and make invocations, with build variables (only flavors using the CPython build command) (#3641) 2026-11-19 01:38:15 +03:00
Jiuyi(Jeremy) Liu 2fbba7f390 pyenv-install: exclude alpha prereleases when resolving :latest (#3640) 2026-11-18 17:44:49 +03:00
Rajatendu DeyandRajatendu Dey ba617bb1f9 python-build: honor custom dependency header flags (#3633)
Co-authored-by: Rajatendu Dey <29519926+Rajatendu1@users.noreply.github.com>
2026-11-15 17:40:36 +03:00
e1065c334c python-build: add PYTHON_BUILD_MIRROR_NO_FALLBACK (#3620)
---------

Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-11-14 23:25:28 +03:00
AyushandIvan Pozdeev e6669f0a84 python-build: share platform detection (#3618)
---------

Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2026-11-01 05:53:45 +03:00
Andrej730 f17642d4b6 Fix whitespace issues 2026-10-31 15:31:13 +03:00
Andrej730 40f7ca6684 pyenv.bats: filter empty line from definitions stub
Drop redundant empty item from `PYTHON_BUILD_DEFINITIONS`
2026-10-31 15:30:37 +03:00
eda-ai-botandeda-ai-bot c34a063004 pyenv-uninstall: list installed versions matching a missing version's prefix (#3611)
Middle ground helper due to `pyenv uninstall` not resolving prefixes

Co-authored-by: eda-ai-bot <eda-ai-bot@users.noreply.github.com>
2026-10-28 23:42:30 +03:00
Ayush 702ac01121 pyenv-latest: include plugin definitions in known-version lookup (#3596) 2026-10-16 11:12:17 +03:00
Saloni GuptaandIvan Pozdeev 7c877e06a0 Harden source scripts with set -euo pipefail and set -f (#3581)
Only use -f whenever there's an unquoted word split where globbing is undesired

---------

Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2026-10-13 20:20:36 +03:00
Ivan Pozdeev 8a4a54a010 Fix incorrect tested var name 2026-10-13 15:35:00 +03:00
Ivan Pozdeev d28b750767 put tests after _setup() 2026-10-10 13:46:55 +03:00
danglduy 68fbc9f35a python-build: honor SDKROOT when selecting Xcode SDK for zlib (#3591) 2026-10-10 13:44:33 +03:00
native-api 2c61dcd03b python-build: install_git: Support verifying the checkout by SHA-1 (#3586)
* For annotated tags, support matching both tag SHA and peeled commit SHA
2026-10-08 08:43:24 +03:00
native-api f9d17bfc06 Rename PYTHON_BUILD_TCLTK_FORMULA to PYTHON_BUILD_HOMEBREW_TCLTK_FORMULA; deprecate the old name (#3580)
* Update tcl/tk note
2026-10-03 18:51:15 +03:00
Ayush 2e3d62a129 tests: python-buid: use helpers from core (#3572) 2026-09-30 06:28:46 +03:00
Ivan Pozdeev 60bfb906e1 Use new fixture 2026-09-28 13:04:27 +03:00
8339b9b033 python-build: show download progress in interactive terminals
---
Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-09-27 11:00:13 +03:00
Ivan Pozdeev 67dbc6e930 stub: support ** to match any number of arguments 2026-09-27 10:59:03 +03:00
native-api df5372511c python-build: create pypy* symlinks for PyPy (#3562)
Source and some older versions builds do not create them
2026-09-24 07:23:52 +03:00
native-api a3c666e177 install-prerequisites: add an option for optional dependencies (#3560) 2026-09-24 00:12:25 +03:00
native-api 26370b7f24 python-build: create PEP 394 symlinks for PyPy (#3559) 2026-09-23 13:34:23 +03:00
4eea9b7848 python-build: create PEP 394 symlinks for Pyston (#3557)
* Consolidate build_package_pyston2_2 into build_package_pyston
There's no longer a difference

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2026-09-23 09:49:52 +03:00
Mingyang Wu 5d43b9a39d python-build: honor explicitly configured OpenSSL on macOS (#3541)
* python-build: probe OpenSSL from standard dependency discovery

Assisted-by: OpenAI Codex
Signed-off-by: Mingyang Wu <129849514+aprylewu@users.noreply.github.com>
2026-09-15 02:20:52 +03:00
Ayush 265b0dcefa python-build: add build prerequisite installer (#3532) 2026-09-02 17:56:35 +03:00
Ivan Pozdeev 14830b18bf tests: skip permission tests if permission bits are being overridden
e.g. if running as root in a docker container
2026-08-26 05:50:04 +03:00
7126870320 pyenv-binary: add the package subcommand; add pyenv install --list --bare (#3498)
Co-authored-by: native-api <vano@mail.mipt.ru>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-07-28 14:31:20 +03:00
Ayush 4c78a0dd50 pyenv-install: install a version under a custom name with <version>:<alias> (#3484) 2026-06-30 04:12:16 +03:00
native-api c425c9ec3a Update URLs for PyPy nightly; Remove pypy3.5 and pypy3.7 nightly (#3466)
pypy3.5-c-jit-latest and pypy3.7-c-jit-latest are no longer available
2026-06-02 13:16:51 +03:00
native-api 95ddd7d479 Support 3.9 EOL Pip URL, consolidate tests (#3465) 2026-06-02 10:29:59 +03:00
native-api 08a015100e python_build: Make verify_python verify `pythonX.Y' suffix (#3459)
* Fix erroneous use in tests that didn't show until now
2026-05-30 12:47:16 +03:00
rockandskaandIvan Pozdeev 2c38423a98 pyenv launcher: introduce and export _PYENV_INSTALL_PREFIX (#3334)
provides a reliable way for Pyenv code to locate other parts of Pyenv code that are not under `PYENV_ROOT`

* tests: Work with Git entirely in a test repo

Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2025-12-24 10:00:09 +03:00
Ivan Pozdeev 74fea7edc6 Fix leftover commented-out test code 2025-10-15 15:00:43 +03:00
native-api 8d3bba2f92 Support building against Homebrew Tcl/Tk 9 (#3343)
Use tclConfig.sh/tkConfig.sh for future-proofing
3.14.0 doesn't detect Tcl/Tk with external libtommath, have to do it ourselves
2025-10-11 00:19:06 +03:00
Ivan Pozdeev ca551b3a55 Add PYTHON_BUILD_TCLTK_FORMULA to allow building against Tcl/Tk 9
Tcl/Tk 9.0 support was added in 3.13.0b3 and is not official as of 3.14.0;
the build with Homebrew version fails as of this writing
2025-09-19 06:20:41 +03:00
Ivan Pozdeev bbe6301f01 Use TCLTK_* and pkg-config for 3.11+ instead of --with-tcl-* and pkg-config
Fixes warnings "configure: WARNING: unrecognized options: --with-tcltk-libs, --with-tcltk-includes"

fix script
2025-09-19 06:20:41 +03:00
rockandska 92a28e531b use BATS_FILE_TMPDIR in test/plugin test
use global setup with bats with possibility to add specific test file _setup
use readlink in helper if realpath is not working as expected
2025-09-15 19:48:34 +02:00
rockandska 8990110dcf upgrade bats to v1.10.0
fix bats warnings
2025-09-15 16:45:02 +02:00
rockandska 0d987b0e4b fix test isolation
Make sur that PYENV_TEST_DIR is created if mktemp failed
mock python3 usage by updating create_executable function
fix test by adding the right PATH
update path in plugin test
replace for loop with while read
don't use symlink for stub
2025-09-15 15:00:14 +02:00
Danny Kim e13b5848be Support linking to MacPorts ports installed from binary archives (#3272) 2025-06-14 09:38:35 +03:00
Alexander StudnitskiyandIvan Pozdeev f24ff8d152 Add MacPorts support for python-build (#3186)
Did not implement customizable priority due to unclear use feedback and more compilation in the code, can decide and do that separately

Tcl/Tk from MacPorts support is omitted due to CPython's only being compatible with 
Tcl/Tk 9 since 3.12.5 and 3.13.0.

Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2025-05-18 18:24:38 +03:00
native-api bc7b6cb6b5 Cache uname and sw_vers output (#3244)
Mainly for tests, to avoid having to adjust call counts for stubs when the logic changes
2025-05-06 19:17:36 +03:00
native-api fc0e27c24b Support PACKAGE_CPPFLAGS and PACKAGE_LDFLAGS (#3130)
add test to test all the flag types
2024-12-13 23:06:03 +03:00
native-api a39449bc50 Prefer tcl-tk@8 from Homebrew due to release of Tcl/Tk 9 with which only 3.12+ are compatible (#3118) 2024-12-06 02:55:53 +03:00
Ivan Pozdeev e44b12c2dc Remove nop tests
Easy syncing with Rbenv is not as important now
2024-07-21 06:36:06 +03:00