Skip to content

Commit 2af9956

Browse files
committed
rm nested call to pip
pypa/pip#2745
1 parent 9a60000 commit 2af9956

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import pip
21
from setuptools import setup
3-
import sys
2+
# inline:
3+
# from openpromela import logic
44

55

66
description = (
@@ -38,9 +38,11 @@ def build_parser_table():
3838
if __name__ == '__main__':
3939
with open(VERSION_FILE, 'w') as f:
4040
f.write(s)
41-
if 'egg_info' not in sys.argv:
42-
pip.main(['install'] + install_requires)
41+
try:
4342
build_parser_table()
43+
except ImportError:
44+
print('WARNING: `openpromela` could not cache parser tables '
45+
'(ignore this if running only for "egg_info").')
4446
setup(
4547
name='openpromela',
4648
version=version,

0 commit comments

Comments
 (0)