代码之家  ›  专栏  ›  技术社区  ›  Drxxd

使用安装程序.py

  •  2
  • Drxxd  · 技术社区  · 6 年前

    我正在尝试为多个支持不同python版本的项目构建控制盘。我不能只使用“python bdist_wheel”,因为它将为python 2构建轮子。

    所以,有没有一种优雅的方法可以使用setup.py?

    如果有什么需要添加到安装程序.py,没关系。

    1 回复  |  直到 6 年前
        1
  •  0
  •   Stanley    6 年前

    你就是这么想的吗?
    https://packaging.python.org/guides/single-sourcing-package-version/

    单一来源软件包版本的方法

    一: enter image description here

    二: enter image description here

    三: enter image description here

    四: enter image description here

    enter image description here

    六: enter image description here

    七: enter image description here