File: build_release

package info (click to toggle)
nitime 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 12,404 kB
  • sloc: python: 10,224; makefile: 110; sh: 34
file content (31 lines) | stat: -rwxr-xr-x 795 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3
"""Nitime release build script.
"""
from toollib import *

# Find our directory and go one above, regardless of where we were called from
my_dir = os.path.split(os.path.abspath(__file__))[0]
cd(pjoin(my_dir, '..'))

# Load release info
execfile(pjoin('nitime','version.py'))

# Check that everything compiles
compile_tree()

# Cleanup
for d in ['build','dist', pjoin('doc','_build'), pjoin('docs','dist')]:
    if os.path.isdir(d):
        remove_tree(d)

# Build source and binary distros
sh('./setup.py sdist --formats=gztar,zip')

# Build eggs
sh('python ./setup_egg.py bdist_egg')

# Create a windows distribution
# sh("python setup.py bdist_wininst")

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