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 години