Skip to content

Commit

Permalink
Skip parse table if ply not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondbutcher committed Jun 19, 2019
1 parent e6e2774 commit 723c3e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ def _pre_install():

class build_py(_build_py):
def run(self):
self.execute(_pre_install, (), msg="Generating parse table...")
try:
import ply
except ImportError:
print("skipping parse table")
else:
self.execute(_pre_install, (), msg="generating parse table...")
_build_py.run(self)


Expand Down

0 comments on commit 723c3e1

Please sign in to comment.