用于安装distutils Python包的buildout配方。
项目描述
对于只能通过distutils安装且尚未作为egg提供的Python包。此配方将下载distutils tarball,构建它并将其放置在您的buildout的parts/site-packages目录内。
您需要通知Python关于此site-packages目录。您可能使用zc.recipe.egg配方来完成此操作
[buildout] parts = mypython [mypython] recipe = zc.recipe.egg eggs = zc.recipe.egg extra-paths = ${buildout:directory}/parts/site-packages/ interpreter = mypython scripts = mypython
选项
- url
要下载和安装的存档的URL。指定的存档将被安装到site-packages目录中。
- build_ext
传递给setup.py的额外构建选项。
待办事项
目前仅在mx-base和psycopg2上完成了足够的配方工作以进行安装。还有很多改进空间…
示例用法
一个示例buildout.cfg,该配置在site-packages目录内安装mx-base和psycopg2。它还安装PostgreSQL以构建psycopg2,调整psycopg2的build_ext以指向现有的PostgreSQL安装将消除此需求
[buildout] parts = egenix-mx-base mypython postgresql psycopg2 [egenix-mx-base] recipe = collective.recipe.distutils url = http://downloads.egenix.com/python/egenix-mx-base-3.0.0.zip [mypython] recipe = zc.recipe.egg eggs = zc.recipe.egg extra-paths = ${buildout:directory}/parts/site-packages/ interpreter = mypython scripts = mypython [postgresql] recipe = zc.recipe.cmmi url = http://example.com/postgresql-8.1.9.tar.gz [psycopg2] recipe = collective.recipe.distutils url = http://example.com/psycopg2-2.0.6.tar.gz build_ext = --pg-config=${buildout:directory}/parts/postgresql/bin/pg_config --rpath=${buildout:directory}/parts/postgresql/lib
项目详情
关闭
collective.recipe.distutils-0.1.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | ee267ee15b40fa3e10f9eb44167c333439a75e199bce89526368d86a7e9ef19c |
|
MD5 | 3e9e9458d384ca8446c7a2e75d822558 |
|
BLAKE2b-256 | 311ff4cb88fcef9d38c2c8d7fe17142cdf5d9e0a0b846cbc6852f54dcdb2e8d3 |
关闭
collective.recipe.distutils-0.1-py2.4.egg的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 3a09623fd5eb71f803c2a6f91095b8801782c97d02359b25777a3c6c89c4d805 |
|
MD5 | 1dd798ed9eb8d2e0b5f45208e34b64d8 |
|
BLAKE2b-256 | c2995a6742daad99b5fa52e78e7405667f9669bec8fbff87591f32d69538d9d8 |