|
|
91edbf |
diff --git a/pycparser/c_lexer.py b/pycparser/c_lexer.py
|
|
|
91edbf |
index 045d24e..9b3cbf2 100644
|
|
|
91edbf |
--- a/pycparser/c_lexer.py
|
|
|
91edbf |
+++ b/pycparser/c_lexer.py
|
|
|
91edbf |
@@ -9,8 +9,8 @@
|
|
|
91edbf |
import re
|
|
|
91edbf |
import sys
|
|
|
91edbf |
|
|
|
91edbf |
-from .ply import lex
|
|
|
91edbf |
-from .ply.lex import TOKEN
|
|
|
91edbf |
+from ply import lex
|
|
|
91edbf |
+from ply.lex import TOKEN
|
|
|
91edbf |
|
|
|
91edbf |
|
|
|
91edbf |
class CLexer(object):
|
|
|
91edbf |
diff --git a/pycparser/c_parser.py b/pycparser/c_parser.py
|
|
|
91edbf |
index 744ede8..50156a3 100644
|
|
|
91edbf |
--- a/pycparser/c_parser.py
|
|
|
91edbf |
+++ b/pycparser/c_parser.py
|
|
|
91edbf |
@@ -8,7 +8,7 @@
|
|
|
91edbf |
#------------------------------------------------------------------------------
|
|
|
91edbf |
import re
|
|
|
91edbf |
|
|
|
91edbf |
-from .ply import yacc
|
|
|
91edbf |
+from ply import yacc
|
|
|
91edbf |
|
|
|
91edbf |
from . import c_ast
|
|
|
91edbf |
from .c_lexer import CLexer
|
|
|
91edbf |
diff --git a/setup.py b/setup.py
|
|
|
91edbf |
index 6dce89c..b3dbfb4 100644
|
|
|
91edbf |
--- a/setup.py
|
|
|
91edbf |
+++ b/setup.py
|
|
|
91edbf |
@@ -8,6 +8,8 @@ except ImportError:
|
|
|
91edbf |
from distutils.command.install import install as _install
|
|
|
91edbf |
from distutils.command.sdist import sdist as _sdist
|
|
|
91edbf |
|
|
|
91edbf |
+import ply
|
|
|
91edbf |
+
|
|
|
91edbf |
|
|
|
91edbf |
def _run_build_tables(dir):
|
|
|
91edbf |
from subprocess import check_call
|
|
|
91edbf |
@@ -60,7 +62,8 @@ setup(
|
|
|
91edbf |
'Programming Language :: Python :: 3.6',
|
|
|
91edbf |
],
|
|
|
91edbf |
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
|
|
|
91edbf |
- packages=['pycparser', 'pycparser.ply'],
|
|
|
91edbf |
+ packages=['pycparser'],
|
|
|
91edbf |
+ install_requires=['ply==' + ply.__version__],
|
|
|
91edbf |
package_data={'pycparser': ['*.cfg']},
|
|
|
91edbf |
cmdclass={'install': install, 'sdist': sdist},
|
|
|
91edbf |
)
|