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 31a32af commit 1ea2e28
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,17 @@ 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)..."
# 编译和安装
make -j$(nproc)
make install
CPU_CORES=$(nproc)
echo "Using $CPU_CORES CPU cores for compilation..."
MAKEFLAGS="-j$CPU_CORES" make
MAKEFLAGS="-j$CPU_CORES" make install

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

0 comments on commit 1ea2e28

Please sign in to comment.