Ivan Pozdeev
74fea7edc6
Fix leftover commented-out test code
pirms 9 mēnešiem
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
pirms 9 mēnešiem
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
pirms 9 mēnešiem
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
pirms 10 mēnešiem
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
pirms 10 mēnešiem
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
pirms 10 mēnešiem
Danny Kim
e13b5848be
Support linking to MacPorts ports installed from binary archives ( #3272 )
pirms 1 gada
Alexander Studnitskiy
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>
pirms 1 gada
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
pirms 1 gada
native-api
fc0e27c24b
Support PACKAGE_CPPFLAGS and PACKAGE_LDFLAGS ( #3130 )
add test to test all the flag types
pirms 1 gada
native-api
a39449bc50
Prefer tcl-tk@8 from Homebrew due to release of Tcl/Tk 9 with which only 3.12+ are compatible ( #3118 )
pirms 1 gada
Ivan Pozdeev
e44b12c2dc
Remove nop tests
Easy syncing with Rbenv is not as important now
pirms 2 gadiem
Ivan Pozdeev
05bb4f9a8d
Use Homebrew in Linux if Pyenv is installed with Homebrew or PYTHON_BUILD_USE_HOMEBREW is set
pirms 2 gadiem
Alex Hedges
928f69cf9a
Install ncurses from Homebrew, if available ( #2813 )
XCode Command Line Tools 15.0 was recently released, and it contains a
broken version of ncurses 6.0. Some uses of Python's `curses` module
will segfault when compiled with it. The solution is to switch to using
the version of ncurses from Homebrew, which is currently 6.4. Support
for ncurses 6 was added to Python 3.7 and was backported to 3.6 and 2.7,
so this change should not break any recently supported Python versions.
Tested with Python 3.12, 3.11, and 2.7, and all tests in
the `test.test_curses` module pass without issue.
See https://github.com/python/cpython/issues/109617 and
https://github.com/python/cpython/issues/69906 for more information.
pirms 2 gadiem
native-api
ac5efed3a8
Fix FreeBSD tests in MacOS CI ( #2748 )
Guthub have recently preinstalled x64 Homebrew OpenSSL to stock MacOS runners. This has caused FreeBSD OpenSSL detection logic to erroneously trigger when running FreeBSD tests in MacOS because their paths happened to coincide.
Replaced checking a specific path with checking with pkg.
pirms 3 gadiem
native-api
819e2b8f45
Fix wrong libpython being linked to in MacOS ( #2596 )
Without rpath, python would link up to the system's libpython
pirms 3 gadiem
Ivan Pozdeev
e447fe5b73
Don't set --enable-shared if user supplied --disable-shared
pirms 3 gadiem
Ivan Pozdeev
4242694a0e
Fix priority for user-supplied configure and make flags
pirms 3 gadiem
Ivan Pozdeev
4bd8a975f4
Avoid adding dangling spaces to *FLAGS
pirms 3 gadiem
Ivan Pozdeev
2a5bbf6cb5
Fix searching readline and sqlite3 in FreeBSD
Surprisingly, CPython doesn't search these with pkg-config
This is fixed upstream in 3.12.0a1
pirms 3 gadiem
Anton Petrov
ca1593c80e
Fix build tests
pirms 3 gadiem
native-api
5b0ac41dec
Discover Tcl/Tk from Homebrew via pkgconfig for 3.11+ ( #2501 )
CPython 3.11+ dropped support for --with-tcl-tk-*
in favor of pure pkgconfig
pirms 3 gadiem
Ivan Pozdeev
f3521e88be
Allow to build CPython with --with-dsymutil
Since 3.12, CPython can provide debug symbols in
Apple's nonstandard way, "dSYM bundles"
pirms 3 gadiem
Ivan Pozdeev
aa07a3a37c
Remove extraneous is_mac call
pirms 3 gadiem
Sam Doran
e6446555f3
Add envvar to skip Homebrew
pirms 3 gadiem
native-api
bc13a87bee
Add flags for Homebrew into `python-config --ldflags` ( #2384 )
pirms 4 gadiem
Ivan Pozdeev
65316a7e99
Don't use Homebrew outside of MacOS
In Linux, it's not the primary source of packages and
cannot be used without build flag adjustments
thus has caused build failures.
pirms 4 gadiem
native-api
4b82f575c7
Append Homebrew custom prefix to search path ( #1957 )
This is needed to find other Python deps (e.g. libintl) in Homebrew if it has
nonstandard prefix (e.g. in Apple M1)
* Re-allow to search Homebrew for zlib everywhere
pirms 4 gadiem
native-api
5963dc4f61
Discover Tcl/Tk reliably and use active version ( #2106 )
Link to the active version like other Homebrew deps --
this won't break when another binary-compatible version is installed.
Use a discovery method that doesn't break when other versions are present alongside.
pirms 4 gadiem
Ivan Pozdeev
2f8c625a7d
Fix test failures
pirms 4 gadiem
tillhainbach
e56962b357
allow tcl-tk as argument or try with homebrew by default Replacement for #1409 ( #1646 )
* feat(python-build): allow tcl-tk as argument or default to homebrew
* refactor(python-build): detect tcl-tk-libs from confugre_opts_arr
pirms 4 gadiem
Ivan Pozdeev
d010b4110a
adjust tests
pirms 5 gadiem
Mikhail Bulash
4157973301
Find zlib from Xcode or brew on Mojave ( #1353 )
fixes #1219 , #1333
pirms 7 gadiem
Yamashita, Yuu
b3ba0fd7e3
Refactor test code of python-build. Use curl during tests by default
pirms 8 gadiem
Yamashita, Yuu
c8ad3385c7
Import latest changes from https://github.com/rbenv/ruby-build as of v20180424
pirms 8 gadiem
Yamashita, Yuu
098fb9f07a
Rewrite python-build tests with using `PYTHON_BUILD_HTTP_CLIENT`
pirms 8 gadiem
Yamashita, Yuu
9ff06f61b6
Fix broken tests
pirms 8 gadiem
Yamashita, Yuu
7478310c1b
Fix tests regard to `--enable-unicode`
pirms 8 gadiem
Yamashita, Yuu
35ecd398ac
Fix test failure on OS X
pirms 9 gadiem
Yamashita, Yuu
9f3f38d312
Add `uname` stubs to avoid test failures on OS X ( #257 )
pirms 9 gadiem
Yamashita, Yuu
021b53f924
Stop specifying `--enable-unicode=ucs4` on OS X ( #257 )
pirms 9 gadiem
Yamashita, Yuu
0dcce750b9
Use `curl` stub instead of `aria2c` during tests (equiv to rbenv/ruby-build#965 )
pirms 10 gadiem
Yamashita, Yuu
b37361b862
Fix broken tests with `--enable-unicode=ucs4` by default
pirms 10 gadiem
Yamashita, Yuu
b116f341fe
Use `aria2c` as the download if available ( #534 )
pirms 10 gadiem
Yamashita, Yuu
f62ee1a4db
Import changes from ruby-build v20151028
pirms 10 gadiem
Yamashita, Yuu
28c40ece8d
Fix broken tests
pirms 10 gadiem
Yamashita Yuu
648afe05a9
Import changes from ruby-build v20150519
pirms 11 gadiem
Yamashita Yuu
123b3af1a0
Import changes from ruby-build v20150112
pirms 11 gadiem
Yamashita Yuu
4a52bfaff9
Fix broken tests
pirms 11 gadiem
Yamashita Yuu
b26b83a11f
Import changes from ruby-build v20141028
pirms 11 gadiem