Changes between and of Initial VersionVersion 13Ticket #3279


Ignore:
Timestamp:
02/27/2010 11:39:56 PM (4 years ago)
Author:
thijs
Comment:

Updated the ticket description, will use it as a 'sandbox' wiki page to write up some docs for this installer.

Some questions:

  • what python are we installing into / can the user choose
  • how/where to install the command line tools

The 'build' part of the installer is up for review. Would be nice to get this into 10.0 so we can build some installers for those (requires changes to _release.py + macosx folder in the root (but that can always be moved elsewhere of course).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3279

    • Property Author changed from to thijs
    • Property Cc thijs dreid added
    • Property Reporter changed from collab to thijs
    • Property Keywords review added
    • Property Branch changed from to branches/osx-installer-3279-2
    • Property Milestone changed from to Twisted-10.0
    • Property Owner radix deleted
  • Ticket #3279 – Description

    initial v13  
    1 I worked on a installer script for Twisted based on the script for MacPython. It's probably not pretty but it works although there are a few (probably trivial) issues like: 
     1= Mac OS X Installer = 
     2Use [http://www.sveinbjorn.org/platypus Platypus] to create a Mac OS X installer from a Python script that copies/installs the files (and possibly lets the user pick their python version)? 
    23 
    3  - how can we figure out if the user is running the mac osx system python, or the 'custom' macpython from python.org? 
    4  - if not, should we have 2 installers, one for leopard and one for macpython 
     4== Building == 
     5Make sure you have the command-line feature in Platypus enabled and run the [source:branches/osx-installer-3279-2/bin/admin/build-mac-installer build-mac-installer] script with the path to the (unpacked) Twisted distribution (the working directory): 
     6{{{ 
     7chbranch osx-installer-3279-2 
     8cd osx-installer-3279-2 
     9bin/admin/build-mac-installer . 
     10}}} 
    511 
    6 The attached .tar.gz that contains an {{{osx}}} folder with a {{{build-installer.py}}}, {{{background.gif}}} (which needs an update but I'm not designer) and a {{{resources}}} folder with various files like the icon for the volume and a {{{welcome.rtf}}} file. It also includes a test build (.dmg) for leopard. 
     12This will create {{{Twisted-9.0.0-macosx.dmg}}} in {{{dist}}}. Files in that mounted {{{.dmg}}} volume: 
     13{{{ 
     14/Volumes/Twisted 9.0.0 Installation$ ls -l 
     15total 120 
     16drwxr-xr-x  4 thijstriemstra  staff    136 28 Feb 05:44 Documentation 
     17-rw-r--r--  1 thijstriemstra  staff   1020 25 Dec 17:43 INSTALL 
     18-rw-r--r--  1 thijstriemstra  staff   1654 17 Jan 02:03 LICENSE 
     19-rw-r--r--  1 thijstriemstra  staff  47511 30 Nov 17:15 NEWS 
     20-rw-r--r--  1 thijstriemstra  staff   3817 30 Nov 17:15 README 
     21drwxr-xr-x  3 thijstriemstra  staff    102 28 Feb 05:43 Twisted 9.0.0 Installer.app 
     22}}} 
    723 
    8 So it would be useful if a better python dev could clean up the script if necessary, and a designer that can check out the graphics. 
     24That documentation folder has copies of the compiled API docs and [source:trunk/doc howto]'s: 
     25 
     26{{{ 
     27$ ls -l Documentation/ 
     28total 0 
     29drwxr-xr-x   2 thijstriemstra  staff   68 28 Feb 05:44 api 
     30drwxr-xr-x  16 thijstriemstra  staff  544 28 Feb 02:35 howto 
     31}}} 
     32 
     33== Running == 
     34The compiled {{{Twisted 9.0.0 Installer.app}}} application contains the {{{twisted}}} source, command-line tools from [source:branches/osx-installer-3279-2/bin bin], and the Python installer {{{script}}}: 
     35 
     36{{{ 
     37$ ls -l Twisted\ 9.0.0\ Installer.app/Contents/Resources/ 
     38-rw-r--r--   1 thijstriemstra  staff    831 28 Feb 05:43 AppSettings.plist 
     39drwxr-xr-x   4 thijstriemstra  staff    136 28 Feb 05:43 English.lproj 
     40-rwxr-xr-x   1 thijstriemstra  staff  46595 27 Feb 13:33 appIcon.icns 
     41drwxr-xr-x  14 thijstriemstra  staff    476 28 Feb 05:43 bin 
     42-rw-r--r--@  1 thijstriemstra  staff    639 28 Feb 05:43 script 
     43drwxr-xr-x  37 thijstriemstra  staff   1258 27 Feb 21:02 twisted 
     44}}} 
     45 
     46The {{{twisted}}} folder contains a copy of the source for installation but is also added to the Python path so it can be used in the Python installer script. 
     47 
     48That {{{script}}} file is a copy of the [source:branches/osx-installer-3279-2/macosx/installer-app.py installer-app.py] file, that prints in the installer status textfield: 
     49{{{ 
     50Running... 
     51Welcome to the Twisted 9.0.0 Installer! 
     52Using bundled Twisted 9.0.0 from /Volumes/Twisted 9.0.0 Installation/Twisted 9.0.0 Installer.app/Contents/Resources 
     53 
     54todo - actually copy/install: 
     55 - source 
     56 - man files? 
     57 - cmdline tools? 
     58}}} 
     59 
     60 
     61