summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-08-01 09:33:56 +0000
committerGerrit Code Review <review@openstack.org>2018-08-01 09:33:56 +0000
commit27762cda8377335a7ddf171ddc266395f6a19480 (patch)
tree33ebbad1a333a7c4387b5bea5ec9a76bb1195335
parenta77c27b3bc0b866ffe70f0a5b5af4d386f504ad7 (diff)
parentde2adc53771f8d73d4b9d7c9529037e187f71678 (diff)
Merge "Fixed "pip-install" test"
-rw-r--r--tools/check-install.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/check-install.py b/tools/check-install.py
index d638c5f..c7f0282 100644
--- a/tools/check-install.py
+++ b/tools/check-install.py
@@ -2,16 +2,17 @@
2 2
3from __future__ import print_function 3from __future__ import print_function
4 4
5import ConfigParser
6import importlib 5import importlib
7import re 6import re
8import sys 7import sys
9 8
9import six.moves.configparser as configparser
10
10 11
11def main(): 12def main():
12 errors = 0 13 errors = 0
13 pattern = re.compile('^(.*?)\s*=\s*([^:]*?):.*$') 14 pattern = re.compile('^(.*?)\s*=\s*([^:]*?):.*$')
14 config = ConfigParser.ConfigParser() 15 config = configparser.ConfigParser()
15 config.read('setup.cfg') 16 config.read('setup.cfg')
16 console_scripts = config.get('entry_points', 'console_scripts') 17 console_scripts = config.get('entry_points', 'console_scripts')
17 for script in console_scripts.split('\n'): 18 for script in console_scripts.split('\n'):