[Python-checkins] python/dist/src/Lib/plat-mac bundlebuilder.py,1.25,1.26

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Sun, 25 May 2003 15:00:20 -0700


Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1:/tmp/cvs-serv2767/Lib/plat-mac

Modified Files:
	bundlebuilder.py 
Log Message:
Added a --python option, which sets the python to be used in the #! line
in the bootstrap script of the applet.


Index: bundlebuilder.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/bundlebuilder.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** bundlebuilder.py	9 Apr 2003 13:25:42 -0000	1.25
--- bundlebuilder.py	25 May 2003 22:00:16 -0000	1.26
***************
*** 333,336 ****
--- 333,339 ----
      standalone = 0
      
+     # If set, use this for #! lines in stead of sys.executable
+     python = None
+     
      # If True, add a real main program that emulates sys.argv before calling
      # mainprogram
***************
*** 443,446 ****
--- 446,451 ----
                  # /usr/bin/python
                  hashbang = "/usr/bin/python"
+             elif self.python:
+                 hashbang = self.python
              else:
                  hashbang = os.path.realpath(sys.executable)
***************
*** 707,710 ****
--- 712,716 ----
        --standalone       build a standalone application, which is fully
                           independent of a Python installation
+       --python=FILE      Python to use in #! line in stead of current Python
        --lib=FILE         shared library or framework to be copied into
                           the bundle
***************
*** 733,737 ****
          "link-exec", "help", "verbose", "quiet", "argv", "standalone",
          "exclude=", "include=", "package=", "strip", "iconfile=",
!         "lib=")
  
      try:
--- 739,743 ----
          "link-exec", "help", "verbose", "quiet", "argv", "standalone",
          "exclude=", "include=", "package=", "strip", "iconfile=",
!         "lib=", "python=")
  
      try:
***************
*** 781,784 ****
--- 787,792 ----
          elif opt == '--standalone':
              builder.standalone = 1
+         elif opt == '--python':
+             builder.python = arg
          elif opt in ('-x', '--exclude'):
              builder.excludeModules.append(arg)