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
Timothy Pansino
8cfc75604b
Fix get-pip urls for older pypy versions ( #2788 )
2023-09-16 11:02:21 +03:00
Evan Pitstick
6be6231444
Use -I with ensurepip
...
The -s flag assures that nothing can be installed to user site-packages
but doesn't keep ensurepip from looking there for Pip.
If Pip is installed in the user site-packages directory, pip won't be installed
for the newly built python -- and its shim won't be created.
-I makes the build install Pip in any case.
The user site-packages installation will override it --
but we'll have the shim at least.
2023-08-27 20:27:47 +03:00
Florian Schüller
68918e69b7
Support for BusyBox version of `head' ( #2629 )
2023-02-22 20:11:48 +03:00
native-api
dd60d5fae2
Fix overriding arguments for --enable-framework and --enable-universalsdk after #2592 ( #2605 )
2023-01-29 00:59:47 +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
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
Anton Petrov
ca1593c80e
Fix build tests
2022-12-23 13:36:37 +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
8db91d5516
Default --with-universal-archs to universal2 on Apple Silicon ( #2122 )
...
Don't override a user-supplied value
2021-10-23 22:01:57 +03:00
Ivan Pozdeev
2f8c625a7d
Fix test failures
2021-09-21 07:44:03 +03:00
Ivan Pozdeev
0dd61f8777
fix test
2021-05-19 17:02:03 +03:00
Ivan Pozdeev
a7044d2c06
Prevent build from installing MacOS apps globally
2021-05-19 15:44:05 +03:00
Ivan Pozdeev
ddf952ab2d
Allow for cases where user might've aliased some programs
...
The $(type -p | head -1) construct expects to always get a path, so need to ignore such aliases with -P
Closes https://github.com/pyenv/pyenv/issues/1662
2021-05-17 10:48:46 +03:00
Mateusz Neumann
3bdafde5bf
Fix URLs in the tests
2021-03-08 13:02:52 +01:00
Yamashita, Yuu
098fb9f07a
Rewrite python-build tests with using PYTHON_BUILD_HTTP_CLIENT
2018-04-24 05:22:32 +00:00
Yamashita, Yuu
a1d39c1e25
Add test for custom GET_PIP_URL
per versions
2018-03-29 00:58:06 +00:00
Yamashita, Yuu
7478310c1b
Fix tests regard to --enable-unicode
2017-09-11 02:02:15 +00: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
5436020ec3
Add a test for custom value for --enable-unicode
2016-02-15 00:42:34 +00: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
28c40ece8d
Fix broken tests
2015-09-23 14:23:31 +09:00
Yamashita, Yuu
ce671398f8
Ignore user's site-packages on ensurepip/get-pip ( #411 )
...
https://www.python.org/dev/peps/pep-0370/
2015-07-18 14:22:58 +09:00
Yamashita Yuu
22ecefd572
Use custom MACOSX_DEPLOYMENT_TARGET
if defined ( fixes #312 )
2015-06-28 13:50:45 +09:00
Yamashita Yuu
abae52ae20
Add tests for some of python-build specific features
2015-06-28 13:34:59 +09:00
Yamashita Yuu
ed684c239c
Fix inverted condition for --altinstall
of ensurepip ( #255 )
2015-05-27 00:49:23 +09:00
Yamashita Yuu
9d21169ee0
Fix regression of #255 and add test
2015-01-31 15:35:40 +09:00
Yamashita Yuu
c6dd3b9468
Add test for built-in python-build's patching feature
2014-11-13 21:53:52 -08:00