Python setuptools: How can I list a private repository under install_requires?

前端 未结 8 1425
南旧
南旧 2020-12-04 15:07

I am creating a setup.py file for a project which depends on private GitHub repositories. The relevant parts of the file look like this:

from s         


        
8条回答
  •  自闭症患者
    2020-12-04 15:39

    Here's what worked for me:

      install_requires=[
          'private_package_name==1.1',
      ],
      dependency_links=[
          'git+ssh://git@github.com/username/private_repo.git#egg=private_package_name-1.1',
      ]
    

    Note that you have to have the version number in the egg name, otherwise it will say it can't find the package.

提交回复
热议问题