Ivan Pozdeev
e44b12c2dc
Remove nop tests
...
Easy syncing with Rbenv is not as important now
2024-07-21 06:36:06 +03:00
Ivan Pozdeev
05bb4f9a8d
Use Homebrew in Linux if Pyenv is installed with Homebrew or PYTHON_BUILD_USE_HOMEBREW is set
2024-02-27 19:17:47 +03:00
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.
2023-10-06 06:59:29 +03:00
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.
2023-07-28 15:23:39 +03:00
native-api
819e2b8f45
Fix wrong libpython being linked to in MacOS ( #2596 )
...
Without rpath, python would link up to the system's libpython
2023-01-19 00:21:10 +03:00
Ivan Pozdeev
e447fe5b73
Don't set --enable-shared if user supplied --disable-shared
2023-01-14 01:45:20 +03:00
Ivan Pozdeev
4242694a0e
Fix priority for user-supplied configure and make flags
2023-01-14 01:44:59 +03:00
Ivan Pozdeev
4bd8a975f4
Avoid adding dangling spaces to *FLAGS
2023-01-13 22:07:31 +03:00
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
2023-01-13 22:07:31 +03:00
Anton Petrov
ca1593c80e
Fix build tests
2022-12-23 13:36:37 +03:00
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
2022-10-29 22:48:13 +03:00
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"
2022-09-23 16:16:17 +03:00
Ivan Pozdeev
aa07a3a37c
Remove extraneous is_mac call
2022-09-19 00:19:00 +03:00
Sam Doran
e6446555f3
Add envvar to skip Homebrew
2022-09-19 00:19:00 +03:00
native-api
bc13a87bee
Add flags for Homebrew into python-config --ldflags
( #2384 )
2022-06-05 22:35:56 +03:00
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.
2022-05-04 03:04:45 +03:00
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
2021-10-26 04:36:01 +03:00
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.
2021-10-16 14:51:39 +03:00
Ivan Pozdeev
2f8c625a7d
Fix test failures
2021-09-21 07:44:03 +03:00
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
2021-09-17 14:56:53 +03:00
Ivan Pozdeev
d010b4110a
adjust tests
2021-05-19 05:47:48 +03:00
Mikhail Bulash
4157973301
Find zlib from Xcode or brew on Mojave ( #1353 )
...
fixes #1219 , #1333
2019-06-11 10:12:00 -04:00
Yamashita, Yuu
d6ba379e08
Merge pull request #1146 from pyenv/http-client-based-on-envvar
...
Allow overriding HTTP client type based on environment variable
2018-05-01 09:34:24 +09:00
Yamashita, Yuu
b3ba0fd7e3
Refactor test code of python-build. Use curl during tests by default
2018-04-26 02:06:57 +00:00
Yamashita, Yuu
c8ad3385c7
Import latest changes from https://github.com/rbenv/ruby-build as of v20180424
2018-04-26 00:56:08 +00:00
Yamashita, Yuu
098fb9f07a
Rewrite python-build tests with using PYTHON_BUILD_HTTP_CLIENT
2018-04-24 05:22:32 +00:00
Yamashita, Yuu
9ff06f61b6
Fix broken tests
2017-11-03 14:14:46 +00:00
Yamashita, Yuu
7478310c1b
Fix tests regard to --enable-unicode
2017-09-11 02:02:15 +00:00
Yamashita, Yuu
35ecd398ac
Fix test failure on OS X
2016-10-05 10:06:03 +09:00
Yamashita, Yuu
9f3f38d312
Add uname
stubs to avoid test failures on OS X ( #257 )
2016-10-05 00:45:21 +00:00
Yamashita, Yuu
021b53f924
Stop specifying --enable-unicode=ucs4
on OS X ( #257 )
2016-10-05 00:32:57 +00:00
Yamashita, Yuu
0dcce750b9
Use curl
stub instead of aria2c
during tests (equiv to rbenv/ruby-build#965 )
2016-06-21 00:31:19 +00:00
Yamashita, Yuu
c71cf59f50
Merge branch 'master' into download-aria2c
2016-05-26 09:28:45 +09:00
Yamashita, Yuu
b37361b862
Fix broken tests with --enable-unicode=ucs4
by default
2016-02-15 00:37:20 +00:00
Yamashita, Yuu
b116f341fe
Use aria2c
as the download if available ( #534 )
2016-02-08 12:45:28 +00:00
Yamashita, Yuu
f62ee1a4db
Import changes from ruby-build v20151028
2015-11-21 02:59:36 +00:00
Yamashita, Yuu
28c40ece8d
Fix broken tests
2015-09-23 14:23:31 +09:00
Yamashita Yuu
648afe05a9
Import changes from ruby-build v20150519
2015-05-27 01:08:12 +09:00
Yamashita Yuu
123b3af1a0
Import changes from ruby-build v20150112
2015-01-15 23:33:39 +09:00
Yamashita Yuu
4a52bfaff9
Fix broken tests
2014-11-04 00:04:25 -08:00
Yamashita Yuu
b26b83a11f
Import changes from ruby-build v20141028
2014-10-29 04:04:10 -07:00
Yamashita Yuu
f76309d419
Add tests for MACOSX_DEPLOYMENT_TARGET ( #219 , #220 )
2014-08-21 13:59:04 +09:00
Yamashita Yuu
29d3df661e
Fix broken tests
2014-08-21 13:59:04 +09:00
Yamashita Yuu
9dac275567
Import changes from ruby-build v20140524
2014-06-03 11:41:47 +09:00
Yamashita Yuu
7612f0391d
Don't clober the environment CPPFLAGS
and LDFLAGS
(refs #168 )
...
Because the variables specified via command-line arguments for the
`./configure` will be favored than one in environment variables,
setting those variables in `PACKAGE_CONFIGURE_OPTS_ARRAY` will hide
existing environment variables.
To avoid the problem, stop using `package_option()` to setup those
variables.
2014-05-21 22:48:11 +09:00
Yamashita Yuu
21f44a130a
Check envvars of CPPFLAGS
and LDFLAGS
during tests
2014-05-21 22:41:28 +09:00
Yamashita Yuu
986db22da8
Import recent changess from ruby-build v20140408
2014-04-09 21:25:29 +09:00
Yamashita Yuu
719e6db358
Import recent changes from ruby-build 20140204
2014-02-08 19:31:35 +09:00
Yamashita Yuu
e65a10be51
Add bats test for python-build
2014-01-17 21:18:22 +09:00