comparison setup.py @ 737:8b3dfd91cbf6

cm: Fix `setup.py` script.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 01 Jun 2016 23:15:07 -0700
parents 77cec2fa0e83
children ebf66b8b83f7
comparison
equal deleted inserted replaced
736:13ec290bfc13 737:8b3dfd91cbf6
14 with open(os.path.join(os.path.dirname(__file__), fname)) as fp: 14 with open(os.path.join(os.path.dirname(__file__), fname)) as fp:
15 return fp.read() 15 return fp.read()
16 16
17 17
18 def readlines(fname): 18 def readlines(fname):
19 lines = [l.strip() for l in read(fname).strip().splitlines()] 19 return [l.strip() for l in read(fname).strip().splitlines()]
20 20
21 21
22 def runcmd(cmd): 22 def runcmd(cmd):
23 with subprocess.Popen( 23 with subprocess.Popen(
24 cmd, stdout=subprocess.PIPE, 24 cmd, stdout=subprocess.PIPE,