Setting up a local PyPi server with custom set of packages [duplicate]

廉价感情. 提交于 2019-12-07 04:21:53

问题


I want to set up a local PyPi server with a custom set of packages and all their dependencies.

What I have right now is a list of packages in format:

django==1.4.3
celery==3.0.12
uwsgi==1.2.6
pillow==1.7.7
...

and I would like to have a local PyPi server which can serve all these eggs and their dependencies.

How can I achieve this?

Ideally I would like to have a tool which can take requirements.txt file as an input, download all listed packages and copy them into a local pypi.


回答1:


You set up a local pypi server, and only provide those eggs and dependencies in the repository...

All this is available through googling 'local pypi server'.

EDIT

It would be simple to write a script to parse your requirements.txt file and pull the packages into your local repository - but ideally this is something you will attempt yourself before asking for help with.



来源:https://stackoverflow.com/questions/14674873/setting-up-a-local-pypi-server-with-custom-set-of-packages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!