Skip to content

Commit

Permalink
rm nested call to pip
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyf committed Jun 17, 2015
1 parent 1e399fb commit f9535d9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pip
from setuptools import setup
import sys
# inline:
# from openpromela import logic


description = (
Expand Down Expand Up @@ -38,9 +38,11 @@ def build_parser_table():
if __name__ == '__main__':
with open(VERSION_FILE, 'w') as f:
f.write(s)
if 'egg_info' not in sys.argv:
pip.main(['install'] + install_requires)
try:
build_parser_table()
except ImportError:
print('WARNING: `openpromela` could not cache parser tables '
'(ignore this if running only for "egg_info").')
setup(
name='openpromela',
version=version,
Expand Down

0 comments on commit f9535d9

Please sign in to comment.