跳转到主要内容

一个非常简单的鸡蛋获取器

项目描述

这是什么?

EggsPacker 允许您将一个python egg及其所有依赖项放入一个单独的目录中,只要它能在python索引中找到它们。

它几乎等同于运行“easy_install -zmaxd basket somepackage”,但有2个重要区别

  1. Python版本和目标平台可以从系统版本中更改。这允许在py2.7 linux(例如)上为py2.5 win32发行版准备所有必要的egg。

  2. EggsPacker 只能与egg一起使用,不使用源。因此,它需要一个索引,其中包含所有依赖项作为egg,适用于正确的目标平台/ Python版本。

免责声明

实现尽可能多地依赖于pkg_resources来解决要求并读取元数据,因此不应该打包错误版本,尽管我当然不提供任何类型的保证。

另一方面,对包索引的读取仅在一个由http://pypi.python.org/pypi/basketweaver/构建的索引上进行了测试,因此如果直接访问pypi索引,请 expect issues。

使用方法

Usage: packeggs [options] pkgname [pkgname [pkgname...]]

Options:
  -h, --help            show this help message and exit
  -i INDEX, --index=INDEX
                        A Pypi compatible index URL. Default to pypi
  -t TARGETDIR, --targetdir=TARGETDIR
                        Target directory. Default: "basket".
  --python-version=PYTHON_VERSION
                        Target python version.
  --platform=PLATFORM   Target platform
  --unzip=UNZIP         Unzip the asked egg if present in the dependencies.
                        The special value "auto" will guess what to do with
                        with not-zip-safe flag, and "all" will force unzipping
                        of all the eggs. Can be specified several times.

示例

以下命令将获取到“basket”目录的ANicePackage-0.1-py2.5 egg及其所有依赖项,针对win32平台,同时解压未标记为zip-safe的egg以及强制解压ANicePackage

packeggs -i http://yourserver/your/package/index --python-version 2.5 --platform win32 --targetdir basket ANicePackage==0.1 --unzip auto --unzip ANicePackage

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解更多关于安装包的信息。

源分发

EggsPacker-0.1.tar.gz (4.5 kB 查看散列值)

上传时间 源码

构建分发版

EggsPacker-0.1-py2.7.egg (9.7 kB 查看散列值)

上传时间 源码

支持者