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