Skip to content

Commit

Permalink
Merge pull request #56 from raymondbutcher/skip-parse-table
Browse files Browse the repository at this point in the history
Skip parse table if ply not installed
  • Loading branch information
virtuald committed Oct 22, 2019
2 parents e6e2774 + 723c3e1 commit 19af7f5
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 19af7f5

Please sign in to comment.