[Grok-dev] Re: zc.sourcefactory
Wichert Akkerman
wichert at wiggy.net
Mon Sep 3 06:11:24 EDT 2007
They should, but different packages have different dependencies which
can confuse buildout. That's why you need the versions thing occasionally.
Wichert.
Sebastian Ware wrote:
> Shouldn't dependencies be put in setup.py like this (?):
>
> install_requires=['setuptools',
> 'grok',
> 'zc.catalog==1.1.1',
> 'hurry.query',
> 'hurry.workflow',
> # Add extra requirements here
> ],
>
> Mvh Sebastian
>
>
> 3 sep 2007 kl. 12.02 skrev Wichert Akkerman:
>
>> Previously Jan Ulrich Hasecke wrote:
>>>
>>> This should go to the list
>>>
>>> Am 03.09.2007 um 10:26 schrieb Philipp von Weitershausen:
>>>
>>>> On 3 Sep 2007, at 10:22 , Jan Ulrich Hasecke wrote:
>>>>>
>>>>> Is zc.sourcefactory a default part of grok?
>>>>
>>>> Nope.
>>>>
>>>>> I get an ImportError.
>>>>> ImportError: No module named sourcefactory.basic
>>>>>
>>>>> If it is not installed by default, how do I install it? Are there
>>>>> any howtos?
>>>>
>>>> There aren't, but it'd be cool if someone could write one down.
>>>>
>>>>
>>>> Basically, by importing zc.sourcefactory in your code, you
>>>> introduce a *dependency*. Dependencies are managed in setup.py. So
>>>> edit setup.py and add 'zc.sourcefactory' to the install_requires
>>>> list. Then run bin/buildout again. It will download and install
>>>> zc.sourcefactory now.
>>>>
>>>> This is, by the way, how all of the Zope packages are installed
>>>> automatically. Your package depends on 'grok' and 'grok' depends on
>>>> various 'zope.*' packages. buildout simply makes sure that all the
>>>> dependencies are installed.
>>>>
>>>
>>> I would write a howto, but first of all I plead to call buildout sid.
>>>
>>> I get this error while calling buildout in my grokproject:
>>>
>>> Error: There is a version conflict.
>>> We already have: ZODB3 3.9.0-dev-r77011
>>> but grok 0.10 requires 'ZODB3==3.8.0b2'.
>>
>> I had to put this in my buildout.cfg recently:
>>
>> [buildout]
>> versions = developversions
>>
>> [developversions]
>> grok = 0.10
>> zope.app.keyreference = 3.4.0a1
>> ZODB3 = 3.8.0b2
>>
>> without that buildout can not install everything due to dependency
>> conflicts.
>>
>> Wichert.
>>
>> -- Wichert Akkerman <wichert at wiggy.net> It is simple to make things.
>> http://www.wiggy.net/ It is hard to make things
>> simple.
>> _______________________________________________
>> Grok-dev mailing list
>> Grok-dev at zope.org
>> http://mail.zope.org/mailman/listinfo/grok-dev
>
--
Wichert Akkerman <wichert at wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
More information about the Grok-dev
mailing list