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.

35 lines
836 B

  1. --- a/pycparser/c_lexer.py
  2. +++ b/pycparser/c_lexer.py
  3. @@ -9,8 +9,8 @@
  4. import re
  5. import sys
  6. -from .ply import lex
  7. -from .ply.lex import TOKEN
  8. +from ply import lex
  9. +from ply.lex import TOKEN
  10. class CLexer(object):
  11. --- a/pycparser/c_parser.py
  12. +++ b/pycparser/c_parser.py
  13. @@ -8,7 +8,7 @@
  14. #------------------------------------------------------------------------------
  15. import re
  16. -from .ply import yacc
  17. +from ply import yacc
  18. from . import c_ast
  19. from .c_lexer import CLexer
  20. --- a/setup.py
  21. +++ b/setup.py
  22. @@ -60,7 +60,7 @@ setup(
  23. 'Programming Language :: Python :: 3.6',
  24. ],
  25. python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
  26. - packages=['pycparser', 'pycparser.ply'],
  27. + packages=['pycparser'],
  28. package_data={'pycparser': ['*.cfg']},
  29. cmdclass={'install': install, 'sdist': sdist},
  30. )