Setting up a local PyPi server with custom set of

2019-05-02 04:47发布

This question already has an answer here:

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条回答
Fickle 薄情
2楼-- · 2019-05-02 05:30

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.

查看更多
登录 后发表回答