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

后端 未结 3 1168
隐瞒了意图╮
隐瞒了意图╮ 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 17:22

    it is possible but not sure what setuptools version you should use. steps:

    in setup.py

    setup(
      ...,
      install_requires=['my-package'],
      dependency_links=[
        # location to your egg file
        os.path.join(os.getcwd(), 'deps', 'my_package-1.0.0-py3.5.egg')
      ]
    )
    

    important thing is that your location should not pass URL pattern test and egg file name should have structure --.egg

提交回复
热议问题