English 中文(简体)
我怎么说不 build地无视双向分配,而是从源头发展?
原标题:How do I tell buildout to ignore a binary distribution and build from source instead?
  • 时间:2012-01-13 15:23:11
  •  标签:
  • buildout

I am including in a buildout an egg (jsonlib) that uses C extensions. On pypi a precompiled blob is present. But it s not compatible with my environment: I get a undefined symbol: PyUnicodeUCS4_FromEncodedObject error. I know this has to do with different environments at compile time and runtime. To solve it buildout should compile the package instead of using the prebuilt one.

不管在奶皮上发现哪些有预产的鸡蛋档案,我怎么说要编纂一揽子计划(所有包裹都会被罚款)。

问题回答

您:

[buildout]
parts = getit

# used to show which download was fetched
download-cache = .

[getit]
recipe = zc.recipe.egg
# this is the first key: ignore using the pypi index
index = .
# this is the second key: provide a direct link to the sdist
find-links = https://pypi.python.org/packages/source/h/hachoir-core/hachoir-core-1.3.3.tar.gz
eggs = hachoir-core==1.3.3

而只有某些非洲顾问办公室使用有条件的章节(索偿人,我写了这段话)来这样做,最新版本是:

[buildout]
parts = getit
download-cache = .

[getit: macosx]
recipe = zc.recipe.egg
index = .
find-links = https://pypi.python.org/packages/source/h/hachoir-core/hachoir-core-1.3.3.tar.gz
eggs = hachoir-core==1.3.3

[getit: not macosx]
recipe = zc.recipe.egg
# use pypi alright
eggs = hachoir-core==1.3.3

在进行这项工作之后,检查离胎的 d子,将拥有用于核查的单相档案副本:那里没有胎盘;





相关问题
The problem with installing PIL using virtualenv or buildout

When I install PIL using easy_install or buildout it installs in such way, that I must do import Image , not from PIL import Image . However, if I do "apt-get install python-imaging" or use "pip -E ...

How do I get started with zc.buildout and Distribute?

I want to use buildout for dependency management, and I hear distribute is the new good way to manage installation of your project. However, easy tutorials to get started seem to be thin on the ...

Problem installing OpenERP server with buildout !

I m trying to deploy OpenERP with a buildout and my own piece of code. In fact I would like to build a complete deployement structure allowing me to use OpenERP with custom modules and patch. First ...

Django admin authentication failure

logging into django admin fails when log in button is pressed first time, but pressing "back" and "log in again - logs the user in successfully. I am deploying Django app with zc.buildout here, ...

Listing buildout configuration variables

I d like to find out, exactly what variables are available when using zc.buildout. I can always look at the source, but ideally I d find a list somewhere, or be able to query buildout to find out ...

热门标签