native-api
95ddd7d479
Support 3.9 EOL Pip URL, consolidate tests ( #3465 )
před 1 měsícem
native-api
08a015100e
python_build: Make `verify_python` verify `pythonX.Y' suffix ( #3459 )
* Fix erroneous use in tests that didn't show until now
před 1 měsícem
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
před 10 měsíci
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
před 1 rokem
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.
před 2 roky
Timothy Pansino
8cfc75604b
Fix get-pip urls for older pypy versions ( #2788 )
před 2 roky
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.
před 2 roky
Florian Schüller
68918e69b7
Support for BusyBox version of `head' ( #2629 )
před 3 roky
native-api
dd60d5fae2
Fix overriding arguments for --enable-framework and --enable-universalsdk after #2592 ( #2605 )
před 3 roky
native-api
819e2b8f45
Fix wrong libpython being linked to in MacOS ( #2596 )
Without rpath, python would link up to the system's libpython
před 3 roky
Ivan Pozdeev
4242694a0e
Fix priority for user-supplied configure and make flags
před 3 roky
Ivan Pozdeev
4bd8a975f4
Avoid adding dangling spaces to *FLAGS
před 3 roky
Anton Petrov
ca1593c80e
Fix build tests
před 3 roky
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.
před 4 roky
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
před 4 roky
native-api
8db91d5516
Default --with-universal-archs to universal2 on Apple Silicon ( #2122 )
Don't override a user-supplied value
před 4 roky
Ivan Pozdeev
2f8c625a7d
Fix test failures
před 4 roky
Ivan Pozdeev
0dd61f8777
fix test
před 5 roky
Ivan Pozdeev
a7044d2c06
Prevent build from installing MacOS apps globally
před 5 roky
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
před 5 roky
Mateusz Neumann
3bdafde5bf
Fix URLs in the tests
před 5 roky
Yamashita, Yuu
098fb9f07a
Rewrite python-build tests with using `PYTHON_BUILD_HTTP_CLIENT`
před 8 roky
Yamashita, Yuu
a1d39c1e25
Add test for custom `GET_PIP_URL` per versions
před 8 roky
Yamashita, Yuu
7478310c1b
Fix tests regard to `--enable-unicode`
před 8 roky
Yamashita, Yuu
9f3f38d312
Add `uname` stubs to avoid test failures on OS X ( #257 )
před 9 roky
Yamashita, Yuu
021b53f924
Stop specifying `--enable-unicode=ucs4` on OS X ( #257 )
před 9 roky
Yamashita, Yuu
0dcce750b9
Use `curl` stub instead of `aria2c` during tests (equiv to rbenv/ruby-build#965 )
před 10 roky
Yamashita, Yuu
5436020ec3
Add a test for custom value for `--enable-unicode`
před 10 roky
Yamashita, Yuu
b37361b862
Fix broken tests with `--enable-unicode=ucs4` by default
před 10 roky
Yamashita, Yuu
b116f341fe
Use `aria2c` as the download if available ( #534 )
před 10 roky
Yamashita, Yuu
28c40ece8d
Fix broken tests
před 10 roky
Yamashita, Yuu
ce671398f8
Ignore user's site-packages on ensurepip/get-pip ( #411 )
https://www.python.org/dev/peps/pep-0370/
před 11 roky
Yamashita Yuu
22ecefd572
Use custom `MACOSX_DEPLOYMENT_TARGET` if defined ( fixes #312 )
před 11 roky
Yamashita Yuu
abae52ae20
Add tests for some of python-build specific features
před 11 roky
Yamashita Yuu
ed684c239c
Fix inverted condition for `--altinstall` of ensurepip ( #255 )
před 11 roky
Yamashita Yuu
9d21169ee0
Fix regression of #255 and add test
před 11 roky
Yamashita Yuu
c6dd3b9468
Add test for built-in python-build's patching feature
před 11 roky