0
0

pyproject.toml をベースにwhl ファイルを作る手順

Last updated at Posted at 2024-08-23

Pythonでのパッケージ作成のためのツールはsetup.py(とsetup.cfg)の時代が長かった。
pyproject.toml を使ったwhl ファイルの作成手順をメモする。

未検証!!

注意

(いまでは poetry というツールやuv, Rye というツールもあります。
まだ、それらを習得していないので、とりあえず、setuptoolsを用いた方法を試しています。)

前提:

すでにpython3 -m pip install . でpyproject.tomlをもとにインストールできていること。

手順

python3 -m pip install --upgrade setuptools wheel build
sudo apt install python3.8-venv

cd /path/to/your/project

python3 -m build wheel
ls dist

結果

目的のwhl ファイルがえられた。

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