Line
Link Here
|
0 |
-- a/setup.py |
0 |
++ b/setup.py |
Lines 107-118
class Install(_install, object):
Link Here
|
107 |
for f in [ script, manpage, manpage_f ]: |
107 |
for f in [ script, manpage, manpage_f ]: |
108 |
self.mkpath(os.path.dirname(f)) |
108 |
self.mkpath(os.path.dirname(f)) |
109 |
|
109 |
|
110 |
# update the interpreter to that of the one the user specified for setup |
|
|
111 |
print("Updating staging/ufw to use %s" % (sys.executable)) |
112 |
subprocess.call(["sed", |
113 |
"-i", |
114 |
"1s%^#.*python.*%#! /usr/bin/env " + sys.executable + "%g", |
115 |
'staging/ufw']) |
116 |
self.copy_file('staging/ufw', script) |
110 |
self.copy_file('staging/ufw', script) |
117 |
self.copy_file('doc/ufw.8', manpage) |
111 |
self.copy_file('doc/ufw.8', manpage) |
118 |
self.copy_file('doc/ufw-framework.8', manpage_f) |
112 |
self.copy_file('doc/ufw-framework.8', manpage_f) |