使用自定义的软件包设置本地PyPi服务器 [英] Setting up a local PyPi server with custom set of packages

查看:86
本文介绍了使用自定义的软件包设置本地PyPi服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用一组自定义的软件包及其所有依赖项来设置本地PyPi服务器.

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
...

并且我想拥有一个本地PyPi服务器,该服务器可以处理所有这些鸡蛋及其依赖项.

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

我该如何实现?

理想情况下,我希望有一个工具可以将requirements.txt文件作为输入,下载所有列出的软件包并将其复制到本地pypi中.

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.

推荐答案

您设置了本地pypi 服务器,并且仅在存储库 ...

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

所有这些都可以通过谷歌搜索本地pypi服务器"获得.

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

编写脚本来解析您的requirements.txt文件并将程序包拉入本地存储库将很简单-但是理想情况下,您会在寻求帮助之前尝试尝试一下.

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.

这篇关于使用自定义的软件包设置本地PyPi服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆