環境
Ubuntu 18.04
python3.8
pythonでパッケージを作り配布する際、今までexeファイルに変換しないといけないのかと思っていました。
しかし、以下のコマンドを実行するとパッケージを作成できることを学びました。
````
python3 setup.py sdist
初回これを実行すると以下のエラー発生しました。
Traceback (most recent call last):
File "./configure", line 22, in <module>
from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils.spawn'
調べたところpythonのpython3-distutilsをインストールしないといけないことが分かり。
インストールしました。
```
apt install -y python3-distutils
インストール完了後、再度、コマンドを実行して無事、パッケージを作成できました。