671 |
src, dest = item |
src, dest = item |
672 |
else: |
else: |
673 |
src = dest = item |
src = dest = item |
674 |
self.copy_file(convert_path(src), |
self.copy_file(convert_path(src), |
675 |
os.path.join(self.root, convert_path(dest))) |
os.path.join(self.root, convert_path(dest))) |
676 |
|
|
677 |
if os.name == "posix" and self.do_symlink: |
if os.name == "posix" and self.do_symlink: |
691 |
initfilename = self.thuban_init_filename() |
initfilename = self.thuban_init_filename() |
692 |
if self.root: |
if self.root: |
693 |
initfilename = change_root(self.root, initfilename) |
initfilename = change_root(self.root, initfilename) |
694 |
contents = thubaninit_contents(repr(self.install_lib_orig)) |
contents = thubaninit_contents(self.install_lib_orig) |
695 |
self.mkpath(os.path.dirname(initfilename)) |
self.mkpath(os.path.dirname(initfilename)) |
696 |
self.execute(write_file, (initfilename, contents), |
self.execute(write_file, (initfilename, contents), |
697 |
"Create %s" % initfilename) |
"Create %s" % initfilename) |
753 |
--prefix=%(prefix)s |
--prefix=%(prefix)s |
754 |
''' |
''' |
755 |
|
|
756 |
|
|
757 |
class thuban_bdist_rpm(bdist_rpm): |
class thuban_bdist_rpm(bdist_rpm): |
758 |
|
|
759 |
"""Thuban specific RPM distribution command""" |
"""Thuban specific RPM distribution command""" |
887 |
self.execute(write_file, (iss_file, self.generate_iss()), |
self.execute(write_file, (iss_file, self.generate_iss()), |
888 |
"Create Inno Setup script file %s" % iss_file) |
"Create Inno Setup script file %s" % iss_file) |
889 |
|
|
890 |
# and invoke |
# and invoke |
891 |
if self.run_inno: |
if self.run_inno: |
892 |
self.spawn(["iscc", iss_file]) |
self.spawn(["iscc", iss_file]) |
893 |
|
|
953 |
line = 'Name: "{group}\\%s"; Filename: "%s";' \ |
line = 'Name: "{group}\\%s"; Filename: "%s";' \ |
954 |
% (icon.title, icon.install_name) |
% (icon.title, icon.install_name) |
955 |
iss.append(line) |
iss.append(line) |
956 |
|
|
957 |
return iss |
return iss |
958 |
|
|
959 |
|
|
969 |
else: |
else: |
970 |
self.install_name = filename |
self.install_name = filename |
971 |
|
|
972 |
|
|
973 |
class thuban_bdist_inno(bdist_inno): |
class thuban_bdist_inno(bdist_inno): |
974 |
|
|
975 |
"""Thuban specific Inno Setup stuff""" |
"""Thuban specific Inno Setup stuff""" |
985 |
# that we can generate the iss-file even on Linux |
# that we can generate the iss-file even on Linux |
986 |
install_options["do_symlink"] = 0 |
install_options["do_symlink"] = 0 |
987 |
bdist_inno.run(self, install_options) |
bdist_inno.run(self, install_options) |
988 |
|
|
989 |
|
|
990 |
# |
# |
991 |
# Run the script |
# Run the script |
992 |
# |
# |