How to include and install local dependencies in setup.py in Python?

后端 未结 3 1175
隐瞒了意图╮
隐瞒了意图╮ 2020-12-06 16:54

I am creating a setup.py to distribute my application. This application has a number of dependencies which can be installed via pip, it also has some custom

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-06 16:58

    There are several options that you can choose from:

    1. Upload your package to some server, and provide the URL with dependency_links.
    2. You could put your python package inside of your my_app package and link it with packages parameter, instead of using the wheel file.
    3. A more hacky way would be to use the setuptools api, and install the package by yourself.

提交回复
热议问题