# Note: these instructions are used by the developer, you will need to 
#       modify them to fit your configuration.

# 041026 - first version
# 041031 - minor correction
# 041203 - minor clarification
# 050112 - added reminder to change script permissions to 644
# 050315 - added installation of wxPython tools
# 050511 - moved mac version to top of file to match order of use
# 060802 - updates for v0.7
# 060810 - more v0.7 changes

How to make Source version?

(1) open terminal window
(2) mkdir GanttPV_Source_v0.8b
(3) cd GanttPV_Source_v0.8b
(4) run this command: 
/usr/local/bin/svn export http://svn.ganttpv.python-hosting.com/ganttpv/branches/v0.8 ganttpv
(5) run this command: 
/usr/local/bin/svn export http://svn.ganttpv.python-hosting.com/scripts/branches/v0.8 Scripts
(6) switch to the finder
(7) delete unused files
- Budget folder
- Object API folder
- Object Role Modeling/Auto Layout of ORM Model.py
- Object Role Modeling/Install ORM Meta-Model Reports.py
- Print - Export/Save as Script - Startup Format.py
- Test Suite folder

in "Object Role Modeling" delete all except for these:
- Copy Diagram to Clipboard as EMF (Windows Only).py
- Generate SQL Deltas.py
- Generate SQL.py
- Insert Existing Object Types.py
- Install ORM Diagram.py
- Rmap Baseline.py
- Rmap.py
- Set Left Unique on Binary Fact Types.py

(8) Compress folder to .tgz

How to make Mac version?
(1) copy source directory
(2) rename folder to version_mac
(3) open terminal window
(4) cd version_mac/ganttpv
(5) /usr/local/bin/python setup_mac.py py2app
(6) switch to finder
(7) copy License.txt, readme.txt, and Scripts to dist folder
(8) copy the Mac Extras into the package contents (see notes.txt)
(9) rename dist to GanttPV_Mac_10.4_v0.8b
(10) compress folder to .dmg

Be sure to change script permissions to 644 (needed to allow web server to display scripts)

====

How to setup wxPython on Windows? (for Windows ME)

(0) Create GanttPV directory on Desktop
(1) Install Python-2.5
    - default directory is c:\python25\
(2) Install wxPython2.8-win32-unicode-2.8.1.1-py25.exe
    - accept default install location
    - accept default check marks for final install actions
(3) Install py2exe-0.6.6.win32-py2.5.exe
    - accept default install location
(4) Install isetup-5.1.6.exe [or ispack-5.1.6.exe?]
    - accept default install location

How to make the windows version?
-- old windows process -- (see below for new process)
(1) Update "setup.py" in "version"
    - new scripts
    - new icons
    - new version number
(2) Copy "version" to "version_win" on Mac
(3) Replace "Scripts" with mac release scripts
(4) Adjust source for Windows version (note: mac flags no longer required)
(5) Copy "version_win" to "GanttPV" directory on Windows
    - on Window ME I had to move "icons" and "Scripts" into "ganttpv"
    - load and save 'License.txt' and 'readme.txt' to adjust end of line characters [only if copied from mac]
(6) Execute setup.py command
    ## - cd Desktop\GantPV\version_win\ganttpv
    - cd c:\windows\profiles\brian\Desktop\GanttPV\version_win\ganttpv
    ## - ..\..\..\Programs\wxp\python.exe setup.py py2exe
    ## - ..\..\wx\python.exe setup.py py2exe
    - c:\python25\python.exe setup.py py2exe
    # this generates  ... version_win\GanttPV\dist\Output
(7) Rename the file and copy to distribution area

======
-- revised windows process --
(1) update "setup.py" script
(2) create directory: version_win on Desktop
(3) create directory: ganttpv in version_win
(4) export ganttpv source into ganttpv
    from: http://svn.ganttpv.python-hosting.com/ganttpv/trunk
(5) create directory: Scripts in version_win\ganttpv
(6) export scripts source into Scripts
    from: http://svn.ganttpv.python-hosting.com/scripts/trunk
# (7) delete the same scripts as for Mac and Source (not necessary)
(8) Execute setup.py command from command line

    # change to the version_win\ganttpv directory you just created
    - cd c:\Documents and Settings\User\Desktop\version_win\ganttpv

    # run the setup script
       - c:\python25\python.exe setup.py py2exe
