Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 902
apopelo Avatar asked Feb 03 '13 16:02

apopelo


1 Answers

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.

like image 193
danodonovan Avatar answered Oct 16 '22 20:10

danodonovan