$ pyenv install 3.6.0a2
Downloading Python-3.6.0a2.tgz...
-> https://www.python.org/ftp/python/3.6.0/Python-3.6.0a2.tgz
/usr/local/bin/python-build: line 230: pushd: Python-3.6.0a2: No such file or directory
BUILD FAILED (OS X 10.11.5 using python-build 20160130)
Inspect or clean up the working tree at /var/folders/mx/gn154d8j3254p213qkhd6n3mlnym4m/T/python-build.20160628093022.79796
Results logged to /var/folders/mx/gn154d8j3254p213qkhd6n3mlnym4m/T/python-build.20160628093022.79796.log
Last 10 log lines:
../Python-3.6.0a2/Doc/c-api/structures.rst: Path contains '..'
../Python-3.6.0a2/Doc/c-api/sys.rst: Path contains '..'
../Python-3.6.0a2/Doc/c-api/tuple.rst: Path contains '..'
../Python-3.6.0a2/Doc/c-api/type.rst: Path contains '..'
../Python-3.6.0a2/Doc/c-api/typeobj.rst: Path contains '..'
../Python-3.6.0a2/Doc/c-api/unicode.rst: Path contains '..'
../Python-3.6.0a2/Doc/c-api/utilities.rst: Path contains '..'
../Python-3.6.0a2/Doc/c-api/veryhigh.rst: Path contains '..'
../Python-3.6.0a2/Doc/c-api/weakref.rst: Path contains '..'
tar: Error exit delayed from previous errors.
It seems the archive contains .. in pathname and BSD tar refused to extract it. This needs to be fixed in CPython. Please report it to them.
% sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.5
BuildVersion: 15F34
% tar xvf Python-3.6.0a2.tgz
x ../Python-3.6.0a2/: Path contains '..'
x ../Python-3.6.0a2/Doc/: Path contains '..'
x ../Python-3.6.0a2/Grammar/: Path contains '..'
x ../Python-3.6.0a2/Include/: Path contains '..'
x ../Python-3.6.0a2/LICENSE: Path contains '..'
x ../Python-3.6.0a2/Lib/: Path contains '..'
x ../Python-3.6.0a2/Mac/: Path contains '..'
x ../Python-3.6.0a2/Makefile.pre.in: Path contains '..'
x ../Python-3.6.0a2/Misc/: Path contains '..'
x ../Python-3.6.0a2/Modules/: Path contains '..'
x ../Python-3.6.0a2/Objects/: Path contains '..'
x ../Python-3.6.0a2/PC/: Path contains '..'
x ../Python-3.6.0a2/PCbuild/: Path contains '..'
x ../Python-3.6.0a2/Parser/: Path contains '..'
x ../Python-3.6.0a2/Programs/: Path contains '..'
x ../Python-3.6.0a2/Python/: Path contains '..'
x ../Python-3.6.0a2/README: Path contains '..'
x ../Python-3.6.0a2/Tools/: Path contains '..'
x ../Python-3.6.0a2/aclocal.m4: Path contains '..'
x ../Python-3.6.0a2/config.guess: Path contains '..'
x ../Python-3.6.0a2/config.sub: Path contains '..'
x ../Python-3.6.0a2/configure: Path contains '..'
x ../Python-3.6.0a2/configure.ac: Path contains '..'
( ... )
This was already reported as a bug in the release, and closed as "wontfix": https://bugs.python.org/issue27337
With the notes from the above bug report, I was able to get the package to install. I don't know if it's worth making an official note of this since this is an alpha release, and they are going to "try real hard not to do it again." (direct quote) But in case anybody else needs to know, here is what I had to do:
$ brew install gnu-tar
...
$ PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" pyenv install 3.6.0a2
...
Alternate fix (5 MB download savings!) that could be implemented here is to download the .tar.xz file as mentioned in the above bug report. Not sure what the #...hexdigits... is in the URL though
Oh, it's the SHA2...potential fix below. Basically:
-...Python-3.6.0a2.tgz#66600469e7938b6476e5...
+...Python-3.6.0a2.tar.xz#2dd2ddf22a63ef9642a20...
Most helpful comment
This was already reported as a bug in the release, and closed as "wontfix": https://bugs.python.org/issue27337
With the notes from the above bug report, I was able to get the package to install. I don't know if it's worth making an official note of this since this is an alpha release, and they are going to "try real hard not to do it again." (direct quote) But in case anybody else needs to know, here is what I had to do: