Opened 3 months ago
Closed 3 months ago
#18358 closed defect (fixed)
Local Mac builds don't work due to Python 3.11.9 update
Reported by: | Tom Goddard | Owned by: | Zach Pearson |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Build System | Version: | |
Keywords: | Cc: | chimerax-programmers | |
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
On Arm Mac.
$ make build-from-scratch
/Library/Developer/CommandLineTools/usr/bin/make -C Python install
NO_LOCAL_SSL_CERT=1 /Library/Developer/CommandLineTools/usr/bin/make -f Makefile.macos
# Move the user's Python directory so we can build relocatable Python cleanly
if [ -d ~/Library/Python/3.11/ ]; then \
mv ~/Library/Python/3.11 ~/Library/Python/3.11.backup; \
fi
git clone https://www.github.com/gregneagle/relocatable-python.git
fatal: destination path 'relocatable-python' already exists and is not an empty directory.
make[5]: [python-3.11.9-mac.tar.bz2] Error 128 (ignored)
# Create requirements.txt to pip install certifi
cd relocatable-python && \
echo certifi > requirements.txt
cd relocatable-python && \
./make_relocatable_python_framework.py \
--python-version 3.11.9 \
--os-version 11 \
--pip-requirements requirements.txt \
--upgrade-pip
Destination ./Python.framework already exists!
# For Python ssl to find the certifi certificates need this symbolic link
cd relocatable-python && \
ln -s ../../lib/python3.11/site-packages/certifi/cacert.pem Python.framework/Versions/3.11/etc/openssl/cert.pem
ln: Python.framework/Versions/3.11/etc/openssl/cert.pem: No such file or directory
make[5]: * [python-3.11.9-mac.tar.bz2] Error 1
make[4]: * [python-3.11.9-mac.tar.bz2] Error 2
make[3]: * [Python.install] Error 2
make[2]: * [install-prebuilt] Error 2
make[1]: * [install] Error 2
make: * [build-from-scratch] Error 2
They should be working now.