testrel
35 lines
| 1.1 KiB
| text/plain
|
TextLexer
/ tools / testrel
Fernando Perez
|
r2115 | #!/bin/bash | ||
Ville M. Vainio
|
r1032 | |||
Fernando Perez
|
r2115 | # Build the release files. Kept as a separate script so we can easily do local | ||
# dry runs without uploading anything externally. | ||||
Ville M. Vainio
|
r1032 | |||
Fernando Perez
|
r2115 | ipdir=${1-..} | ||
Ville M. Vainio
|
r1032 | |||
Fernando Perez
|
r1207 | cd $ipdir | ||
# Clean up build/dist directories | ||||
Fernando Perez
|
r2115 | rm -rf build/* | ||
rm -rf dist/* | ||||
rm -rf docs/build/* | ||||
rm -rf docs/dist/* | ||||
Fernando Perez
|
r1207 | |||
Fernando Perez
|
r2115 | # Build source and binary distros | ||
Ville M. Vainio
|
r1032 | ./setup.py sdist --formats=gztar | ||
Fernando Perez
|
r2115 | # 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/...) | ||||
Fernando Perez
|
r1706 | python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5 | ||
Fernando Perez
|
r2115 | python2.6 ./setup.py bdist_rpm --binary-only --release=py26 --python=/usr/bin/python2.6 | ||
Ville M. Vainio
|
r1032 | |||
# Build eggs | ||||
Fernando Perez
|
r1206 | python2.5 ./setup_bdist_egg.py | ||
Fernando Perez
|
r2115 | python2.6 ./setup_bdist_egg.py | ||
Ville M. Vainio
|
r1032 | |||
# 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) | ||||
./setup.py bdist_wininst --install-script=ipython_win_post_install.py | ||||
# Change name so retarded Vista runs the installer correctly | ||||
Fernando Perez
|
r2115 | rename 's/win32/win32-setup/' dist/*.exe | ||