Skip to content

Commit

Permalink
0.0.9 install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
言道子 committed Dec 15, 2024
1 parent 1ea2e28 commit ec88bec
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,14 @@ make clean || true
--with-system-ffi \
--enable-loadable-sqlite-extensions \
--with-ensurepip=yes \
--enable-optimizations \
--with-lto \
--enable-ipv6 \
LDFLAGS="-Wl,-rpath /usr/local/lib"

echo "Building Python (this may take a while)..."
# 编译和安装
CPU_CORES=$(nproc)
echo "Using $CPU_CORES CPU cores for compilation..."
MAKEFLAGS="-j$CPU_CORES" make
MAKEFLAGS="-j$CPU_CORES" make install
make -j$CPU_CORES
make install

# 创建软链接
ln -sf /usr/local/bin/python3.12 /usr/local/bin/python3
Expand Down

0 comments on commit ec88bec

Please sign in to comment.