/[thuban]/branches/WIP-pyshapelib-bramz/setup.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/setup.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 253 by bh, Wed Aug 14 13:38:45 2002 UTC revision 452 by bh, Tue Mar 4 11:31:04 2003 UTC
# Line 1  Line 1 
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  #  #
# Line 488  class thuban_build_py(build_py): Line 488  class thuban_build_py(build_py):
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
# Line 671  class ThubanInstall(install): Line 676  class ThubanInstall(install):
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:
# Line 691  class ThubanInstall(install): Line 696  class ThubanInstall(install):
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)
# Line 753  bdist_rpm_install_script = ''' Line 758  bdist_rpm_install_script = '''
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"""
# Line 887  class bdist_inno(Command): Line 892  class bdist_inno(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    
# Line 953  class bdist_inno(Command): Line 958  class bdist_inno(Command):
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    
# Line 969  class InnoIconItem: Line 974  class InnoIconItem:
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"""
# Line 985  class thuban_bdist_inno(bdist_inno): Line 990  class thuban_bdist_inno(bdist_inno):
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  #  #
# Line 997  Thuban is a viewer for geographic data w Line 1002  Thuban is a viewer for geographic data w
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",

Legend:
Removed from v.253  
changed lines
  Added in v.452

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26