How do you host your own egg repository?

前端 未结 4 707
不思量自难忘°
不思量自难忘° 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:20

    If your team is distributed -- and on speaking terms -- then a simple subversion repository of source is better than some other kind of server.

    Simply create projects and have everyone checkout trunk. When things change, tell them to update.

    If your team is co-located -- and on speaking terms -- then a shared drive with the "official" libraries also works well. Simply mount it and include it on your PYTHONPATH.

    If you want localized copies, provide the official source in subversion (or a shared drive) with a good setup.py file. They simply CD to the directory and run python setup.py install and everything else happens for them. It's a fraction simpler than easy_install because setup.py is already part of the Python distribution.

    Eggs are for people who are not on speaking terms.

    Your team members usually are on speaking terms and don't need the added complexity of eggs. The basic setup.py should be sufficient.

提交回复
热议问题