[Python-checkins] python/dist/src/Tools/idle setup.py,1.4,1.5

loewis@users.sourceforge.net loewis@users.sourceforge.net
Thu, 16 Jan 2003 03:03:35 -0800


Update of /cvsroot/python/python/dist/src/Tools/idle
In directory sc8-pr-cvs1:/tmp/cvs-serv30193/Tools/idle

Modified Files:
	setup.py 
Log Message:
Properly find and install icons even if calling setup.py from the build dir.


Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/idle/setup.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** setup.py	6 Nov 2002 21:59:33 -0000	1.4
--- setup.py	16 Jan 2003 11:03:33 -0000	1.5
***************
*** 27,31 ****
  # the normal build_py would not incorporate the .txt files
  txt_files = ['config-unix.txt','config-win.txt','config.txt', 'help.txt']
! Icons = glob.glob1("Icons","*.gif")
  class idle_build_py(build_py):
      def get_plain_outfile(self, build_dir, package, file):
--- 27,31 ----
  # the normal build_py would not incorporate the .txt files
  txt_files = ['config-unix.txt','config-win.txt','config.txt', 'help.txt']
! Icons = glob.glob1(os.path.join(package_dir,"Icons"),"*.gif")
  class idle_build_py(build_py):
      def get_plain_outfile(self, build_dir, package, file):
***************
*** 49,53 ****
              dir = os.path.dirname(outfile)
              self.mkpath(dir)
!             self.copy_file(os.path.join("Icons",name),
                             outfile, preserve_mode = 0)
  
--- 49,53 ----
              dir = os.path.dirname(outfile)
              self.mkpath(dir)
!             self.copy_file(os.path.join(package_dir, "Icons", name),
                             outfile, preserve_mode = 0)