1 |
# Copyright (c) 2001, 2002 by Intevation GmbH |
# Copyright (c) 2001, 2002, 2003 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> |
4 |
# |
# |
488 |
distribution. |
distribution. |
489 |
""" |
""" |
490 |
|
|
491 |
|
# FIXME: When Thuban can rely on Python 2.3 as the oldest supported |
492 |
|
# Python release we don't need to override the run and |
493 |
|
# find_all_modules methods anymore. distutils will allow both python |
494 |
|
# modules and packages starting with 2.3. |
495 |
|
|
496 |
def run(self): |
def run(self): |
497 |
"""The same the as the original in build_py revision 1.33 except |
"""The same the as the original in build_py revision 1.33 except |
498 |
that this allows both packages and modules to be in one |
that this allows both packages and modules to be in one |
676 |
src, dest = item |
src, dest = item |
677 |
else: |
else: |
678 |
src = dest = item |
src = dest = item |
679 |
self.copy_file(convert_path(src), |
self.copy_file(convert_path(src), |
680 |
os.path.join(self.root, convert_path(dest))) |
os.path.join(self.root, convert_path(dest))) |
681 |
|
|
682 |
if os.name == "posix" and self.do_symlink: |
if os.name == "posix" and self.do_symlink: |
696 |
initfilename = self.thuban_init_filename() |
initfilename = self.thuban_init_filename() |
697 |
if self.root: |
if self.root: |
698 |
initfilename = change_root(self.root, initfilename) |
initfilename = change_root(self.root, initfilename) |
699 |
contents = thubaninit_contents(repr(self.install_lib_orig)) |
contents = thubaninit_contents(self.install_lib_orig) |
700 |
self.mkpath(os.path.dirname(initfilename)) |
self.mkpath(os.path.dirname(initfilename)) |
701 |
self.execute(write_file, (initfilename, contents), |
self.execute(write_file, (initfilename, contents), |
702 |
"Create %s" % initfilename) |
"Create %s" % initfilename) |
758 |
--prefix=%(prefix)s |
--prefix=%(prefix)s |
759 |
''' |
''' |
760 |
|
|
761 |
|
|
762 |
class thuban_bdist_rpm(bdist_rpm): |
class thuban_bdist_rpm(bdist_rpm): |
763 |
|
|
764 |
"""Thuban specific RPM distribution command""" |
"""Thuban specific RPM distribution command""" |
892 |
self.execute(write_file, (iss_file, self.generate_iss()), |
self.execute(write_file, (iss_file, self.generate_iss()), |
893 |
"Create Inno Setup script file %s" % iss_file) |
"Create Inno Setup script file %s" % iss_file) |
894 |
|
|
895 |
# and invoke |
# and invoke |
896 |
if self.run_inno: |
if self.run_inno: |
897 |
self.spawn(["iscc", iss_file]) |
self.spawn(["iscc", iss_file]) |
898 |
|
|
958 |
line = 'Name: "{group}\\%s"; Filename: "%s";' \ |
line = 'Name: "{group}\\%s"; Filename: "%s";' \ |
959 |
% (icon.title, icon.install_name) |
% (icon.title, icon.install_name) |
960 |
iss.append(line) |
iss.append(line) |
961 |
|
|
962 |
return iss |
return iss |
963 |
|
|
964 |
|
|
974 |
else: |
else: |
975 |
self.install_name = filename |
self.install_name = filename |
976 |
|
|
977 |
|
|
978 |
class thuban_bdist_inno(bdist_inno): |
class thuban_bdist_inno(bdist_inno): |
979 |
|
|
980 |
"""Thuban specific Inno Setup stuff""" |
"""Thuban specific Inno Setup stuff""" |
990 |
# that we can generate the iss-file even on Linux |
# that we can generate the iss-file even on Linux |
991 |
install_options["do_symlink"] = 0 |
install_options["do_symlink"] = 0 |
992 |
bdist_inno.run(self, install_options) |
bdist_inno.run(self, install_options) |
993 |
|
|
994 |
|
|
995 |
# |
# |
996 |
# Run the script |
# Run the script |
997 |
# |
# |
1002 |
""" |
""" |
1003 |
|
|
1004 |
setup(name = "Thuban", |
setup(name = "Thuban", |
1005 |
version = "0.1.3cvs", |
version = "0.1.3", |
1006 |
description = "Geographic data viewer", |
description = "Geographic data viewer", |
1007 |
long_description = long_description, |
long_description = long_description, |
1008 |
licence = "GPL", |
licence = "GPL", |