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
959 B

  1. --- a/pycparser/c_lexer.py
  2. +++ b/pycparser/c_lexer.py
  3. @@ -8,8 +8,8 @@
  4. #------------------------------------------------------------------------------
  5. import re
  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. @@ -6,7 +6,7 @@
  14. # Eli Bendersky [https://eli.thegreenplace.net/]
  15. # License: BSD
  16. #------------------------------------------------------------------------------
  17. -from .ply import yacc
  18. +from ply import yacc
  19. from . import c_ast
  20. from .c_lexer import CLexer
  21. --- a/setup.py
  22. +++ b/setup.py
  23. @@ -64,7 +64,7 @@ setup(
  24. 'Programming Language :: Python :: 3.10',
  25. ],
  26. python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
  27. - packages=['pycparser', 'pycparser.ply'],
  28. + packages=['pycparser'],
  29. package_data={'pycparser': ['*.cfg']},
  30. cmdclass={'install': install, 'sdist': sdist},
  31. )