简短的指令如何从M2上的源代码获得可获得的cpython。
您需要确保已安装Xcode或
xcode-select --install
我们需要与啤酒安装:
brew install openssl xz zlib gdbm sqlite gcc
git克隆cpython。我的情况是heads/v3.9.0b1
git clone https://github.com/python/cpython
CD到Cpython文件夹
编译:
CPPFLAGS="-I$(brew --prefix zlib)/include" \
LDFLAGS="-L$(brew --prefix zlib)/lib" \
CC=/opt/homebrew/bin/gcc-13 \
arch -x86_64 \
./configure --with-openssl=$(brew --prefix openssl) \
--with-pydebug