MCPcopy Create free account
hub / github.com/numpy/numpy / run

Method run

numpy/distutils/command/install.py:56–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54 self.do_egg_install()
55
56 def run(self):
57 if not have_setuptools:
58 r = old_install.run(self)
59 else:
60 r = self.setuptools_run()
61 if self.record:
62 # bdist_rpm fails when INSTALLED_FILES contains
63 # paths with spaces. Such paths must be enclosed
64 # with double-quotes.
65 with open(self.record) as f:
66 lines = []
67 need_rewrite = False
68 for l in f:
69 l = l.rstrip()
70 if ' ' in l:
71 need_rewrite = True
72 l = '"%s"' % (l)
73 lines.append(l)
74 if need_rewrite:
75 self.execute(write_file,
76 (self.record, lines),
77 "re-writing list of installed files to '%s'" %
78 self.record)
79 return r

Callers 1

setuptools_runMethod · 0.45

Calls 4

setuptools_runMethod · 0.95
openFunction · 0.85
rstripMethod · 0.80
executeMethod · 0.80

Tested by

no test coverage detected