|
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 | |
|---|
| 5 | make distdir |
|---|
| 6 | |
|---|
| 7 | distdir=`make print-distdir|cut -c11-` |
|---|
| 8 | echo $distdir |
|---|
| 9 | mv $distdir/peppy/hsi/hsi_major_mode_proxy.py $distdir/peppy/plugins |
|---|
| 10 | mv $distdir/peppy/hsi/hsi_major_mode.peppy-plugin $distdir/peppy/plugins |
|---|
| 11 | |
|---|
| 12 | # Create the eggs directory that will be used to store plugins |
|---|
| 13 | mkdir $distdir/eggs |
|---|
| 14 | touch $distdir/eggs/__init__.py |
|---|
| 15 | |
|---|
| 16 | # Unzip the platform independent eggs |
|---|
| 17 | ls -1 $distdir/plugins/*py2.5.egg | while read EGG; do |
|---|
| 18 | unzip -o $EGG -d $distdir/eggs |
|---|
| 19 | done |
|---|
| 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 |
|---|
| 26 | ls -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 |
|---|
| 31 | done |
|---|
| 32 | mv $distdir/plugins $distdir/plugins-src |
|---|
| 33 | |
|---|
| 34 | cat > $distdir/py2exe.sh <<EOF |
|---|
| 35 | #!/bin/bash |
|---|
| 36 | python setup.py py2exe |
|---|
| 37 | |
|---|
| 38 | # The following DLLs are needed for Vista support |
|---|
| 39 | cp c:/python25/lib/site-packages/wx-2.8-msw-unicode/wx/MSVCP71.dll dist |
|---|
| 40 | cp c:/python25/lib/site-packages/wx-2.8-msw-unicode/wx/gdiplus.dll dist |
|---|
| 41 | |
|---|
| 42 | /program-files/NSIS/makensis win-installer.nsi |
|---|
| 43 | EOF |
|---|
| 44 | chmod 755 $distdir/py2exe.sh |
|---|