0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Python3.14 リリース直前!今のうちに Python のビルド方法を確認しておく

0
Posted at

Python3.14 リリース直前!今のうちに Python のビルド方法を確認しておく

10 月に Python3.14 出るそうなのですぐに試したいとおもっているのですが、
3.13 が出たときにもビルドしているのにやり方をあまり覚えていなかったので覚書していきます。

環境

この記事は Ubuntu を前提にしています。

PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

手順

最速ということで、tar ボールをダウンロードしてビルドします。依存パッケージは各自で入れておいてください。
下にインストールスクリプトを書いたのでターミナルから実行してください。

公式サイト

URL を確認したら下のシェルスクリプトの wget 部分を書き直してください。

wget https://www.python.org/ftp/python/3.14.0/Python-3.14.tgz
tar xf Python-3.14.tgz
cd Python-3.14/
./configure CC=clang CFLAGS="-O3 -march=native" --prefix=/usr/local/
make
sudo make install

configure

設定は次のドキュメントを見て考えてください。

注目設定

  • --prefix=PREFIX
    • インストール場所設定
  • --disable-gil
    • 最近話題の GIL 無効化

Link

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?