| •1 |
#!/usr/bin/env python3 |
| 2 |
"""Nitime release build script. |
| 3 |
""" |
| 4 |
from toollib import * |
| 5 |
|
| 6 |
# Find our directory and go one above, regardless of where we were called from |
| 7 |
my_dir = os.path.split(os.path.abspath(__file__))[0] |
| 8 |
cd(pjoin(my_dir, '..')) |
| 9 |
|
| 10 |
# Load release info |
| 11 |
execfile(pjoin('nitime','version.py')) |
| 12 |
|
| 13 |
# Check that everything compiles |
| 14 |
compile_tree() |
| 15 |
|
| 16 |
# Cleanup |
| 17 |
for d in ['build','dist', pjoin('doc','_build'), pjoin('docs','dist')]: |
| 18 |
if os.path.isdir(d): |
| 19 |
remove_tree(d) |
| 20 |
|
| 21 |
# Build source and binary distros |
| 22 |
sh('./setup.py sdist --formats=gztar,zip') |
| 23 |
|
| 24 |
# Build eggs |
| 25 |
sh('python ./setup_egg.py bdist_egg') |
| 26 |
|
| 27 |
# Create a windows distribution |
| 28 |
# sh("python setup.py bdist_wininst") |
| 29 |
|
| 30 |
# Change name so retarded Vista runs the installer correctly |
| 31 |
# sh("rename 's/linux-i686/win32-setup/' dist/*.exe") |