You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0 KiB

  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. -from .ply import lex
  9. -from .ply.lex import TOKEN
  10. +from ply import lex
  11. +from ply.lex import TOKEN
  12. class CLexer(object):
  13. diff --git a/pycparser/c_parser.py b/pycparser/c_parser.py
  14. index f4f7453..5c0ca88 100644
  15. --- a/pycparser/c_parser.py
  16. +++ b/pycparser/c_parser.py
  17. @@ -8,7 +8,7 @@
  18. #------------------------------------------------------------------------------
  19. import re
  20. -from .ply import yacc
  21. +from ply import yacc
  22. from . import c_ast
  23. from .c_lexer import CLexer
  24. diff --git a/setup.py b/setup.py
  25. index fdccbb3..036a10b 100644
  26. --- a/setup.py
  27. +++ b/setup.py
  28. @@ -49,7 +49,7 @@ setup(
  29. classifiers = [
  30. 'Programming Language :: Python :: 2',
  31. 'Programming Language :: Python :: 3',],
  32. - packages=['pycparser', 'pycparser.ply'],
  33. + packages=['pycparser'],
  34. package_data={'pycparser': ['*.cfg']},
  35. cmdclass={'install': install, 'sdist': sdist},
  36. )