-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed py2exe build process to start from dist rather than remaking …
…the dist on windows * moved helper files into py2exe directory so they get included in source dist * added checks to make sure not attempting to build py2exe in a copy of the code that's under version control * note: the process is still started from build-archives.sh, it's just reworked svn-revision: r2390
- Loading branch information
1 parent
74b5dba
commit f84acf8
Showing
10 changed files
with
99 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,26 @@ | |||
#!/bin/bash | |||
|
|||
# Designed to be called from an ssh session. An argument must be passed to the | |||
# script indicating the root of the compressed archive. | |||
|
|||
|
|||
ROOT=$1 | |||
|
|||
if [ ! -f $ROOT.tar.* ] | |||
then | |||
echo "Source archive for $ROOT doesn't exist. Not building." | |||
exit -1 | |||
fi | |||
|
|||
if rm -rf $ROOT | |||
then | |||
: | |||
else | |||
echo "Failed removing $ROOT. Someone using that directory?" | |||
exit -1 | |||
fi | |||
|
|||
bzcat $ROOT.* | tar xf - | |||
cd $ROOT | |||
bash py2exe/prepare-distdir.sh | |||
bash py2exe/build-py2exe.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
#!/bin/bash | |||
python setup.py py2exe | |||
|
|||
# The following DLLs are needed for Vista support | |||
cp c:/python25/lib/site-packages/wx-2.8-msw-unicode/wx/MSVCP71.dll dist | |||
cp c:/python25/lib/site-packages/wx-2.8-msw-unicode/wx/gdiplus.dll dist | |||
|
|||
/program-files/NSIS/makensis py2exe/win-installer.nsi | |||
chmod 755 py2exe/*.exe |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,57 @@ | |||
#!/bin/bash | |||
# | |||
# Modify the distdir in preparation for a py2exe | |||
|
|||
# First, verify that we are being called in the root directory, not the py2exe | |||
# directory. | |||
|
|||
if [ ! -f setup.py ] | |||
then | |||
cd .. | |||
if [ ! -f setup.py ] | |||
then | |||
echo "Must be called from inside root peppy directory" | |||
exit 1 | |||
fi | |||
fi | |||
echo "Found working directory $PWD" | |||
|
|||
# Don't run this on the version control directory; only run this on a directory | |||
# that has a version number -- i.e. one that has been created by 'make distdir' | |||
|
|||
if [ -d .git -o -d .svn -o -d .peppy-project -o -d i18n.in ] | |||
then | |||
echo | |||
echo "ERROR! Don't call this from a version that you are editing!" | |||
echo "This is designed to modify an unzipped source distribution in place" | |||
echo "to create the directory structure needed to build a one-off py2exe" | |||
echo "installer." | |||
exit 2 | |||
fi | |||
|
|||
mv peppy/hsi/hsi_plugin.py peppy/plugins | |||
mv peppy/hsi/hsi_plugin.peppy-plugin peppy/plugins | |||
mv peppy/project/project_plugin.py peppy/plugins | |||
mv peppy/project/project_plugin.peppy-plugin peppy/plugins | |||
|
|||
# Create the eggs directory that will be used to store plugins | |||
mkdir eggs | |||
touch eggs/__init__.py | |||
|
|||
# Unzip the platform independent eggs | |||
ls -1 peppy/plugins/eggs/*py2.5.egg | while read EGG; do | |||
unzip -o $EGG -d eggs | |||
done | |||
|
|||
# add the platform independent eggs to the py2exe include list | |||
./py2exe/prepare-plugin-list.py -i . -d peppy/major_modes -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 peppy/plugins/eggs/*win32.egg | while read EGG; do | |||
unzip -o $EGG | |||
cat EGG-INFO/top_level.txt | while read TOPLEVEL; do | |||
echo "import $TOPLEVEL" >> peppy/py2exe_plugins.py | |||
done | |||
done | |||
rm peppy/plugins/eggs/*.egg |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters