How do you host your own egg repository?

前端 未结 4 714
不思量自难忘°
不思量自难忘° 2020-12-28 17:25

Say you\'re on a team that\'s maintaining a lot of internal python libraries(eggs), and for whatever reason uploading them to pypi is not an option. How could you host the l

4条回答
  •  我在风中等你
    2020-12-28 18:01

    Deploy all your eggs to a directory all devs. can reach (for instance on a webserver).

    To install eggs from that directory, type:

    $ easy_install -H None -f http://server/vdir TheEggToInstall
    

    or.

    $ easy_install -H None -f /path/to/directory TheEggToInstall
    

    -H None means do not allow egg download from any host (except the one named in -f).

    The directory can be reachable over http or can be a directory you mount (NFS, Windows shares etc.). Perhaps even FTP works?

    The easy_install documentation has information on this.

提交回复
热议问题