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