This PR will add support for installing a named version using the
following:
```
pyenv install --name <name> <version>
```
This will add the user supplied `<name>` to the end of the version as
`<version>-<name>`. For example:
```
~$ pyenv install --name test-environment 3.11.3
Downloading Python-3.11.3.tar.xz...
-> https://www.python.org/ftp/python/3.11.3/Python-3.11.3.tar.xz
Installing Python-3.11.3...
Installed Python-3.11.3 to /home/user/.pyenv/versions/3.11.3-test-environment
~$ pyenv versions
* system (set by /home/user/.pyenv/version)
3.8.5
3.11.3
3.11.3-test-environment
~$ pyenv 3.11.3-test-environment
~$ pyenv global 3.11.3-test-environment
~$ pyenv versions
system
3.8.5
3.11.3
* 3.11.3-test-environment (set by /home/user/.pyenv/version)
~$
```
All include directories should go into CPPFLAGS.
XCode SDK was being added to CFLAGS instead
which caused old Tcl/Tk in the SDK to override a newer one in Homebrew.
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.
Guthub have recently preinstalled x64 Homebrew OpenSSL to stock MacOS runners. This has caused FreeBSD OpenSSL detection logic to erroneously trigger when running FreeBSD tests in MacOS because their paths happened to coincide.
Replaced checking a specific path with checking with pkg.
* Remove all use of `greadlink`, fix#2654
Signed-off-by: Harry Chen <i@harrychen.xyz>
* revert greadlink back in tests
---------
Signed-off-by: Harry Chen <i@harrychen.xyz>
Co-authored-by: Anton Petrov <anton.a.petrov@gmail.com>
Trace logs without `-v` are usually useless due to missing the build part.
So this leaves one less thing for users to worry about
when submitting error reports.
Mentioning `-v` in the issue template should stay for some time
since users report on old versions, too.