Commit based upon d6442850bde61f0c3e7e2ae3247b4a856073c5e0
[librecmc/package-feed.git] / lang / python-pycparser / patches / 001-use-external-ply.patch
1 diff --git a/pycparser/c_lexer.py b/pycparser/c_lexer.py
2 index cbb9d26..cbd7742 100644
3 --- a/pycparser/c_lexer.py
4 +++ b/pycparser/c_lexer.py
5 @@ -9,8 +9,8 @@
6  import re
7  import sys
8  
9 -from .ply import lex
10 -from .ply.lex import TOKEN
11 +from ply import lex
12 +from ply.lex import TOKEN
13  
14  
15  class CLexer(object):
16 diff --git a/pycparser/c_parser.py b/pycparser/c_parser.py
17 index f4f7453..5c0ca88 100644
18 --- a/pycparser/c_parser.py
19 +++ b/pycparser/c_parser.py
20 @@ -8,7 +8,7 @@
21  #------------------------------------------------------------------------------
22  import re
23  
24 -from .ply import yacc
25 +from ply import yacc
26  
27  from . import c_ast
28  from .c_lexer import CLexer
29 diff --git a/setup.py b/setup.py
30 index fdccbb3..036a10b 100644
31 --- a/setup.py
32 +++ b/setup.py
33 @@ -49,7 +49,7 @@ setup(
34      classifiers = [
35          'Programming Language :: Python :: 2',
36          'Programming Language :: Python :: 3',],
37 -    packages=['pycparser', 'pycparser.ply'],
38 +    packages=['pycparser'],
39      package_data={'pycparser': ['*.cfg']},
40      cmdclass={'install': install, 'sdist': sdist},
41  )