LoginSignup
0
0

More than 5 years have passed since last update.

Python2,3 両対応なwheelをbuildする

Last updated at Posted at 2017-11-02

概要

単に python setup.py bdist_wheel を実行すると実行した環境のPythonのバージョンに対応したwheelがbuildされるので、Python2,3に両対応なwheelをビルドしたい。

方法

--universal オプションをつけて python setup.py bdist_wheel --universal を実行する。
ただし、参考情報にあるように下記の条件が必要。

Only use the --universal setting, if:

  1. Your project runs on Python 2 and 3 with no changes (i.e. it does not require 2to3).
  2. Your project does not have any C extensions.

参考情報

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