#!/bin/bash # Make distribution in preparation for creating a py2exe executable make distdir distdir=`make print-distdir|cut -c11-` echo $distdir mv $distdir/peppy/hsi/hsi_major_mode_proxy.py $distdir/peppy/plugins mv $distdir/peppy/hsi/hsi_major_mode.peppy-plugin $distdir/peppy/plugins # Create the eggs directory that will be used to store plugins mkdir $distdir/eggs touch $distdir/eggs/__init__.py # Unzip the platform independent eggs ls -1 $distdir/plugins/*py2.5.egg | while read EGG; do unzip -o $EGG -d $distdir/eggs done # add the platform independent eggs to the py2exe include list ./make-py2exe-plugin-list.py -i $distdir -d peppy/plugins -e eggs # Handle eggs with compiled objects. They don't seem to do well when placed in # the eggs directory -- they need to be in the top level directory ls -1 $distdir/plugins/*win32.egg | while read EGG; do unzip -o $EGG -d $distdir cat $distdir/EGG-INFO/top_level.txt | while read TOPLEVEL; do echo "import $TOPLEVEL" >> $distdir/peppy/py2exe_plugins.py done done mv $distdir/plugins $distdir/plugins-src cat > $distdir/py2exe.sh <