diff --git a/setup.py b/setup.py index 03b1e8f..27aba1c 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ -import pip from setuptools import setup -import sys +# inline: +# from openpromela import logic description = ( @@ -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,