root/trunk/make-dist.sh

Revision 1717, 1.4 kB (checked in by rob, 5 weeks ago)

Modified build process to not regenerate eggs every time making a new distribution
* 'make eggs' now forces source code to be included to work around py2exe leaving out .pyc files from the library.zip

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3# Make distribution in preparation for creating a py2exe executable
4
5make distdir
6
7distdir=`make print-distdir|cut -c11-`
8echo $distdir
9mv $distdir/peppy/hsi/hsi_major_mode_proxy.py $distdir/peppy/plugins
10mv $distdir/peppy/hsi/hsi_major_mode.peppy-plugin $distdir/peppy/plugins
11
12# Create the eggs directory that will be used to store plugins
13mkdir $distdir/eggs
14touch $distdir/eggs/__init__.py
15
16# Unzip the platform independent eggs
17ls -1 $distdir/plugins/*py2.5.egg | while read EGG; do
18    unzip -o $EGG -d $distdir/eggs
19done
20
21# add the platform independent eggs to the py2exe include list
22./make-py2exe-plugin-list.py -i $distdir -d peppy/plugins -e eggs
23
24# Handle eggs with compiled objects.  They don't seem to do well when placed in
25# the eggs directory -- they need to be in the top level directory
26ls -1 $distdir/plugins/*win32.egg | while read EGG; do
27    unzip -o $EGG -d $distdir
28    cat $distdir/EGG-INFO/top_level.txt | while read TOPLEVEL; do
29        echo "import $TOPLEVEL" >> $distdir/peppy/py2exe_plugins.py
30    done
31done
32mv $distdir/plugins $distdir/plugins-src
33
34cat > $distdir/py2exe.sh <<EOF
35#!/bin/bash
36python setup.py py2exe
37
38# The following DLLs are needed for Vista support
39cp c:/python25/lib/site-packages/wx-2.8-msw-unicode/wx/MSVCP71.dll dist
40cp c:/python25/lib/site-packages/wx-2.8-msw-unicode/wx/gdiplus.dll dist
41
42/program-files/NSIS/makensis win-installer.nsi
43EOF
44chmod 755 $distdir/py2exe.sh
Note: See TracBrowser for help on using the browser.