安装distutils python包的构建方法。
collective.recipe.distutils的Python项目详细描述
对于python包,它只能用distutils安装,而不能 可作为鸡蛋。这个配方将下载一个distutils tarball,构建它 并将其放在构建的parts/site packages目录中。
由您来通知您的python这个站点包目录。 您可以使用zc.recipe.egg recipe:
[buildout] parts = mypython [mypython] recipe = zc.recipe.egg eggs = zc.recipe.egg extra-paths = ${buildout:directory}/parts/site-packages/ interpreter = mypython scripts = mypython
选项
- 网址
- 要下载和安装的存档的url。指定的存档 将安装在网站包目录中。
- 构建扩展
- 传递给setup.py的其他生成选项。
待办事项
目前在这个配方上只做了足够的工作 安装MX Base和psycopg2。还有很多改进的余地…
示例用法
一个示例buildout.cfg,它在 站点包目录。它还安装了postgresql用于构建 PycPGG2,为PycPGG2调整BueDeXEXT以指向现有的 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