Commit graph

130 commits

Author SHA1 Message Date
native-api bc13a87bee
Add flags for Homebrew into python-config --ldflags (#2384) 2022-06-05 22:35:56 +03:00
yggdr cd5522965b
Pass through CFLAGS_EXTRA for Micropython (#2007)
Co-authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
2022-05-31 19:47:06 +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
Ivan Pozdeev e928e75f22 Fix a duplicate error message on stub plan overrun 2022-05-04 02:58:47 +03:00
Ville Skyttä a9e11ba164
Use command and type instead of which (#2144)
`which` has been deprecated in Debian's debianutils 5.0+
They suggest using `type` and `command` as replacements:
3a8dd10b45 ,
610a65c6ef
2021-11-11 21:08:12 +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
native-api 5963dc4f61
Discover Tcl/Tk reliably and use active version (#2106)
Link to the active version like other Homebrew deps --
this won't break when another binary-compatible version is installed.
Use a discovery method that doesn't break when other versions are present alongside.
2021-10-16 14:51:39 +03:00
Ivan Pozdeev 2f8c625a7d Fix test failures 2021-09-21 07:44:03 +03:00
Ivan Pozdeev 6882be06a6 Bats: report unstub failure details 2021-09-21 07:43:58 +03:00
tillhainbach e56962b357
allow tcl-tk as argument or try with homebrew by default Replacement for #1409 (#1646)
* feat(python-build): allow tcl-tk as argument or default to homebrew
* refactor(python-build): detect tcl-tk-libs from confugre_opts_arr
2021-09-17 14:56:53 +03:00
native-api e154693dc6
Revert "Drop inferring version to install from pyenv local" 2021-06-14 17:08:46 +03:00
Anton Petrov 70934bd635
Merge pull request #1907 from native-api/install_no_blank
Drop inferring version to install from `pyenv local`
2021-06-04 21:01:48 +03:00
Anton Petrov aa950f939a
Merge pull request #1935 from native-api/framework_prefix
Prevent build from installing MacOS apps globally
2021-05-20 22:50:31 +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 d010b4110a adjust tests 2021-05-19 05:47:48 +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
Ivan Pozdeev b4511f0787 Remove test for the feature 2021-05-10 03:19:38 +03:00
Ivan Pozdeev 37f6349b01 Make test independent of umask
Only test the permission bit that we're setting
2021-05-07 20:34:00 +03:00
Mateusz Neumann 3bdafde5bf Fix URLs in the tests 2021-03-08 13:02:52 +01:00
James Curtin 5d84eed869
Add support for PYTHON_BUILD_MIRROR_URL when checksums do not exist (#1673) 2020-10-03 14:30:46 -04:00
Varun Agrawal a8f5fc13ee
Improved messages for uninstall (#1591) 2020-04-22 11:45:28 -04:00
Mikhail Bulash 4157973301 Find zlib from Xcode or brew on Mojave (#1353)
fixes #1219, #1333
2019-06-11 10:12:00 -04:00
Andrew Rabert 0f596d2504 Revert "Merge pull request #1153 from cmcginty/remove-sbang"
This reverts commit 070e1c859f, reversing
changes made to 3faeda67bb.
2019-04-23 10:23:33 -04:00
Christopher Hunt 070e1c859f
Merge pull request #1153 from cmcginty/remove-sbang
Remove shebang lines from scripts for performance
2019-04-22 20:13:19 -04:00
Yamashita, Yuu 02a4b33b62 Run python-build directly from make to avoid job cancellation after 10 min no output on travis-ci.org 2019-04-08 23:54:12 +09:00
Yamashita, Yuu e7ed7fa27e Fix tests 2019-04-08 23:09:29 +09:00
Casey McGinty 83e5459cfb Remove shebang lines from scripts for performance
All scripts in libexec/ (excluding pyenv) are called through pyenv,
therefore the shebang lines are not necessary. On some systems this
provides a measurable increase in performance of the shell prompt.

Related to pyenv/pyenv-virtualenv#259
2019-03-07 22:15:14 +01:00
Chris Hunt 8ed7912759 Add CI builds that actually build Python.
For now this just builds the latest CPython, but it can be
extended to include other versions.

Skip with `[skip build]` in commit message.
2019-02-21 20:02:40 -05:00
Yamashita, Yuu d6ba379e08
Merge pull request #1146 from pyenv/http-client-based-on-envvar
Allow overriding HTTP client type based on environment variable
2018-05-01 09:34:24 +09:00
Yamashita, Yuu b3ba0fd7e3 Refactor test code of python-build. Use curl during tests by default 2018-04-26 02:06:57 +00:00
Yamashita, Yuu c8ad3385c7 Import latest changes from https://github.com/rbenv/ruby-build as of v20180424 2018-04-26 00:56:08 +00: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 9ff06f61b6 Fix broken tests 2017-11-03 14:14:46 +00:00
Yamashita, Yuu 7478310c1b Fix tests regard to --enable-unicode 2017-09-11 02:02:15 +00:00
Yamashita, Yuu d01fa09a7d Migrate project URL to https://github.com/pyenv/pyenv 2017-03-06 04:31:48 +00:00
Yamashita, Yuu 35ecd398ac Fix test failure on OS X 2016-10-05 10:06:03 +09: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 66c8ca6cff Import changes in rbenv/ruby-build#979 2016-08-15 04:42:50 +00:00
Yamashita, Yuu c4e012d5e3 Prevent loading user's aria2.conf (fixes #625) 2016-06-22 00:38:38 +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 42cffbc82d Fix broken tests related to changes in aria2c arguments 2016-06-02 01:38:23 +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 a0e0f1637a Just a style issue; use export instead of unset like other variables 2016-02-13 03:49:28 +00:00
Yamashita, Yuu cd8f61b5e0 Allow overriding aria2c/curl/wget via environment variable (#534) 2016-02-13 02:50:51 +00:00
Yamashita, Yuu fbc40aae77 Increased verbosity of aria2c downloader (#534) 2016-02-12 07:08:59 +00:00
Yamashita, Yuu b116f341fe Use aria2c as the download if available (#534) 2016-02-08 12:45:28 +00:00
Yamashita, Yuu c8ab429d7b Import recent changes from ruby-build 20160130 2016-02-08 00:19:05 +00:00
Yamashita, Yuu 28766056b2 Update OpenSSL to 1.0.1q (fixes #496) 2015-12-07 01:23:14 +00:00
Yamashita, Yuu f62ee1a4db Import changes from ruby-build v20151028 2015-11-21 02:59:36 +00:00
Yamashita, Yuu 28c40ece8d Fix broken tests 2015-09-23 14:23:31 +09:00
Yamashita, Yuu 0f288f2462 Import changes from ruby-build v20150818 2015-08-25 15:37: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 648afe05a9 Import changes from ruby-build v20150519 2015-05-27 01:08:12 +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 123b3af1a0 Import changes from ruby-build v20150112 2015-01-15 23:33:39 +09:00
Yamashita Yuu c6dd3b9468 Add test for built-in python-build's patching feature 2014-11-13 21:53:52 -08:00
Eric Mill cb260fb9d0 fix another failing test with https URL 2014-11-05 09:23:06 -08:00
Eric Mill 4f0439cd12 fix one failing test, around mirror URL 2014-11-05 09:22:59 -08:00
Yamashita Yuu 4a52bfaff9 Fix broken tests 2014-11-04 00:04:25 -08:00
Yamashita Yuu b26b83a11f Import changes from ruby-build v20141028 2014-10-29 04:04:10 -07:00
Yamashita Yuu f76309d419 Add tests for MACOSX_DEPLOYMENT_TARGET (#219, #220) 2014-08-21 13:59:04 +09:00
Yamashita Yuu 29d3df661e Fix broken tests 2014-08-21 13:59:04 +09:00
Yamashita Yuu 2ec8f0f0a4 Fix fetch_git with --keep (sstephenson/ruby-build#549) 2014-06-09 22:41:43 +09:00
Yamashita Yuu 9dac275567 Import changes from ruby-build v20140524 2014-06-03 11:41:47 +09:00
Yamashita Yuu 7612f0391d Don't clober the environment CPPFLAGS and LDFLAGS (refs #168)
Because the variables specified via command-line arguments for the
`./configure` will be favored than one in environment variables,
setting those variables in `PACKAGE_CONFIGURE_OPTS_ARRAY` will hide
existing environment variables.

To avoid the problem, stop using `package_option()` to setup those
variables.
2014-05-21 22:48:11 +09:00
Yamashita Yuu 21f44a130a Check envvars of CPPFLAGS and LDFLAGS during tests 2014-05-21 22:41:28 +09:00
Yamashita Yuu 149a915770 Import recent changes from ruby-build 20140420 2014-05-01 13:14:41 +09:00
Yamashita Yuu 986db22da8 Import recent changess from ruby-build v20140408 2014-04-09 21:25:29 +09:00
Yamashita Yuu 719e6db358 Import recent changes from ruby-build 20140204 2014-02-08 19:31:35 +09:00
Yamashita Yuu b44398e954 Add .gitignore 2014-01-21 00:04:02 +09:00
Yamashita Yuu e65a10be51 Add bats test for python-build 2014-01-17 21:18:22 +09:00