[PEAK] Keyword "as" in RuleDispatch
PJ Eby
pje at telecommunity.com
Tue Oct 6 11:57:28 EDT 2015
Yes, you do need to install it. Make sure you install
0.5a1.dev-r2717, as that is the version with 2.7 support. PEAK itself
has not been ported to using PEAK-Rules yet, and it's rather unlikely
it will ever be. (You are free to continue using RuleDispatch, of
course; the current version does in fact have 2.7 support. I forgot
that we put that in already.)
On Tue, Oct 6, 2015 at 8:34 AM, Alexey Smishlayev <alexey at xtech2.lv> wrote:
> Thank you for the suggestion!
>
> What would be the correct way to install PEAK + PEAK-Rules?
> I did:
> $ sudo pip install
> http://peak.telecommunity.com/snapshots/PEAK-Rules-0.5a1.dev-r2713.tar.gz
> [...]
> $ sudo pip install
> http://peak.telecommunity.com/snapshots/PEAK-0.5a4.dev-r2486.tar.gz
> Downloading/unpacking
> http://peak.telecommunity.com/snapshots/PEAK-0.5a4.dev-r2486.tar.gz
> Downloading PEAK-0.5a4.dev-r2486.tar.gz (1.0MB): 1.0MB downloaded
> Running setup.py (path:/tmp/pip-pEff4R-build/setup.py) egg_info for
> package from
> http://peak.telecommunity.com/snapshots/PEAK-0.5a4.dev-r2486.tar.gz
>
> Downloading/unpacking RuleDispatch>=0.5a0dev-r2287 (from
> PEAK==0.5a4.dev-r2486)
> Could not find any downloads that satisfy the requirement
> RuleDispatch>=0.5a0dev-r2287 (from PEAK==0.5a4.dev-r2486)
> Cleaning up...
> No distributions at all found for RuleDispatch>=0.5a0dev-r2287 (from
> PEAK==0.5a4.dev-r2486)
>
>
> Do I still have to install RuleDispatch, even if I don't use it?
>
>
> Best regards,
> Alexey
>
>
>
> On 2015.10.03. 02:13, PJ Eby wrote:
>>
>> Ruledispatch had support dropped many years ago; PEAK-Rules has a
>> RuleDispatch emulation API that addresses the 'as' issue. See
>>
>> http://peak.telecommunity.com/DevCenter/PEAK-Rules#porting-code-from-ruledispatch
>> for details.
>>
>> On Fri, Oct 2, 2015 at 3:34 AM, Alexey Smishlayev <alexey at xtech2.lv>
>> wrote:
>>>
>>> Hello!
>>>
>>> In the RuleDispatch package (I use most recent dev snapshot
>>>
>>> http://peak.telecommunity.com/snapshots/RuleDispatch-0.5a1.dev-r2717.tar.gz,
>>> file src/dispatch/__init__.py, line 22) a global name "as" is set, which
>>> is
>>> a reserved keyword in Python 2.7. That makes the package unusable, so I
>>> have
>>> to patch it locally every time I do an install.
>>>
>>> Is that an expected behavior or maybe there are other ways to deals with
>>> the
>>> problem?
>>>
>>>
>>> Best regards,
>>> Alexey Smishlayev
>>> _______________________________________________
>>> PEAK mailing list
>>> PEAK at eby-sarna.com
>>> http://www.eby-sarna.com/mailman/listinfo/peak
>
>
More information about the PEAK
mailing list