rql #278637 setup.py fails with "new" setuptools [validation pending]

With the following traceback:

$ python setup.py build_ext --inplace
Traceback (most recent call last):
  File "setup.py", line 232, in <module>
    install()
  File "setup.py", line 228, in install
    **kwargs
  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 266, in __init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 300, in finalize_options
    ep.require(installer=self.fetch_build_egg)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2201, in require
    reqs = self.dist.requires(self.extras)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in requires
    dm = self._dep_map
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2457, in __getattr__
    raise AttributeError(attr)
AttributeError: _dep_map

While not at all obvious, the issue is that rql's parser.py conflicts with python's own parser module which newer setuptools import. Basically, we have little choice but to rename parser.py to something else.

prioritynormal
typebug
done in0.33.1
load0.500
load left0.000
closed by#d9762b5a4604 [pkg] Use setuptools
patchsetup.py: use os.walk instead of os.path.walk [applied]