0

I'm trying to install rbtree as a PyPy module. I read that some modules are not compatible with PyPy. Is there any way to install it properly or any alternative? I'm looking for a tree dictionary that also can be browsed like tree[0:100] (subscriptable) and that also supports item assignment. I tried to install it with the following command but I got lots of errors:

pypy setup.py install
Carlos Vega
  • 1,341
  • 2
  • 13
  • 35

1 Answers1

1

If you are fine with slightly different API, the easiest way is to look for other modules that do the same in pure Python code. There is for example this one: https://pypi.python.org/pypi/binary_tree_dict_mod. A pure Python version will be much faster than a CPython-C-API-compatible version in PyPy.

Armin Rigo
  • 12,048
  • 37
  • 48