570 |
if os.name != 'nt': |
if os.name != 'nt': |
571 |
# Must force install to use the 'nt' scheme; |
# Must force install to use the 'nt' scheme; |
572 |
install.select_scheme('nt') |
install.select_scheme('nt') |
|
# don't make a symlink because we're simulating windows, so |
|
|
# that we can generate the iss-file even on Linux |
|
|
install.do_symlink = 0 |
|
573 |
|
|
574 |
self.announce("installing to %s" % self.bdist_dir) |
self.announce("installing to %s" % self.bdist_dir) |
575 |
install.ensure_finalized() |
install.ensure_finalized() |
652 |
|
|
653 |
class InnoIconItem: |
class InnoIconItem: |
654 |
|
|
655 |
"""Describe one item for he start menu for the Inno Setup installer""" |
"""Describe one item for the start menu for the Inno Setup installer""" |
656 |
|
|
657 |
def __init__(self, filename, title, install_name = None): |
def __init__(self, filename, title, install_name = None): |
658 |
self.filename = filename |
self.filename = filename |
662 |
else: |
else: |
663 |
self.install_name = filename |
self.install_name = filename |
664 |
|
|
665 |
|
|
666 |
class thuban_bdist_inno(bdist_inno): |
class thuban_bdist_inno(bdist_inno): |
667 |
|
|
668 |
"""Thuban specific Inno Setup stuff""" |
"""Thuban specific Inno Setup stuff""" |
674 |
"warn_dir": 0, |
"warn_dir": 0, |
675 |
"extra_files": ["COPYING", "Lib/proj.dll"], |
"extra_files": ["COPYING", "Lib/proj.dll"], |
676 |
} |
} |
677 |
|
# don't make a symlink because we're simulating windows, so |
678 |
|
# that we can generate the iss-file even on Linux |
679 |
|
install_options["do_symlink"] = 0 |
680 |
bdist_inno.run(self, install_options) |
bdist_inno.run(self, install_options) |
681 |
|
|
682 |
|
|