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
10 -from .ply.lex import TOKEN
12 +from ply.lex import TOKEN
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
21 #------------------------------------------------------------------------------
24 -from .ply import yacc
28 from .c_lexer import CLexer
29 diff --git a/setup.py b/setup.py
30 index fdccbb3..036a10b 100644
33 @@ -49,7 +49,7 @@ setup(
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},