Skip to content

Commit

Permalink
Minor fixes to build scripts.
Browse files Browse the repository at this point in the history
build_rpm failing, don't know why; we may just stop providing rpms as those
are normally the distributor's problem.
  • Loading branch information
fperez committed Jan 10, 2010
1 parent 85e7e95 commit ad68d24
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
9 changes: 8 additions & 1 deletion setupegg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"""Wrapper to run setup.py using setuptools."""

import os
import shutil
import sys

# now, import setuptools and call the actual setup
Expand All @@ -10,4 +11,10 @@

# clean up the junk left around by setuptools
if "develop" not in sys.argv:
os.unlink('ipython.egg-info')
try:
shutil.rmtree('ipython.egg-info')
except:
try:
os.unlink('ipython.egg-info')
except:
pass
10 changes: 5 additions & 5 deletions tools/build_release
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ c('./setup.py sdist --formats=gztar,zip')
# Build version-specific RPMs, where we must use the --python option to ensure
# that the resulting RPM is really built with the requested python version (so
# things go to lib/python2.X/...)
c("python2.5 ./setup.py bdist_rpm --binary-only --release=py25 "
"--python=/usr/bin/python2.5")
c("python2.6 ./setup.py bdist_rpm --binary-only --release=py26 "
"--python=/usr/bin/python2.6")
#c("python2.5 ./setup.py bdist_rpm --binary-only --release=py25 "
# "--python=/usr/bin/python2.5")
#c("python2.6 ./setup.py bdist_rpm --binary-only --release=py26 "
# "--python=/usr/bin/python2.6")

# Build eggs
c('python2.5 ./setupegg.py bdist_egg')
Expand All @@ -36,7 +36,7 @@ c('python2.6 ./setupegg.py bdist_egg')
# Call the windows build separately, so that the extra Windows scripts don't
# get pulled into Unix builds (setup.py has code which checks for
# bdist_wininst)
c("python setup.py bdist_wininst --install-script=ipython_win_post_install.py")
c("python ./setup.py bdist_wininst")

# Change name so retarded Vista runs the installer correctly
c("rename 's/linux-i686/win32-setup/' dist/*.exe")

0 comments on commit ad68d24

Please sign in to comment.