概要
単に python setup.py bdist_wheel
を実行すると実行した環境のPythonのバージョンに対応したwheelがbuildされるので、Python2,3に両対応なwheelをビルドしたい。
方法
--universal
オプションをつけて python setup.py bdist_wheel --universal
を実行する。
ただし、参考情報にあるように下記の条件が必要。
Only use the --universal setting, if:
- Your project runs on Python 2 and 3 with no changes (i.e. it does not require 2to3).
- Your project does not have any C extensions.