roelfie / dotfiles

Repository containing my macOS dotfiles (and much more)
3 stars 0 forks source link

Python build fails #24

Open roelfie opened 1 year ago

roelfie commented 1 year ago

setup_python.zsh fails:

<<< Setup Python >>>

pyenv should already have been installed with Homebrew:
pyenv 2.3.17
Before we continue, it is recommended that you now (manually) install the python build dependencies for macOS.
Please follow the instructions on the pyenv web page that we have opened in your browser.
(typically something like 'brew install openssl readline sqlite3 xz zlib tcl-tk')
Press [Enter] to continue. 
Installing the latest python version into /Users/roelfie/.pyenv/versions.
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.12.0a7.tar.xz...
-> https://www.python.org/ftp/python/3.12.0/Python-3.12.0a7.tar.xz
Installing Python-3.12.0a7...
python-build: use tcl-tk from homebrew
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 12.5 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/w0/dl3x9q2j00qcp8p80xnkcb100000gn/T/python-build.20230511122800.71069
Results logged to /var/folders/w0/dl3x9q2j00qcp8p80xnkcb100000gn/T/python-build.20230511122800.71069.log

Last 10 log lines:
    if test $? -ne 0 ; then \
        echo "generate-posix-vars failed" ; \
        rm -f ./pybuilddir.txt ; \
        exit 1 ; \
    fi
DYLD_LIBRARY_PATH=/var/folders/w0/dl3x9q2j00qcp8p80xnkcb100000gn/T/python-build.20230511122800.71069/Python-3.12.0a7 ./python.exe -E -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
zsh:1: parse error near `fi'
make: *** [rundsymutil] Error 1
make: *** Waiting for unfinished jobs....
Checked 111 modules (30 built-in, 79 shared, 2 n/a on macosx-12.5-arm64, 0 disabled, 0 missing, 0 failed on import)
Latest python 3 version installed. Available versions: 
* system (set by /Users/roelfie/.pyenv/version)
Open a new terminal and do 'pyenv global <version>' to select the latest python version (if necessary).
When you have selected the desired version, we will install global python packages.
Press [Enter] when done. 
Installing global python packages.
./scripts/setup_python.zsh:28: command not found: pip
Command [./scripts/setup_python.zsh] failed