[go: up one dir, main page]

File: build_release

package info (click to toggle)
dipy 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,828 kB
  • sloc: python: 63,790; makefile: 258; pascal: 167; sh: 131; ansic: 106
file content (28 lines) | stat: -rwxr-xr-x 686 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/env python
"""dipy release build script.
"""
import os
from toollib import (c, get_dipydir, compile_tree, cd, pjoin, remove_tree)

# Get main dipy dir, this will raise if it doesn't pass some checks
dipydir = get_dipydir()
cd(dipydir)

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

# Check that everything compiles
compile_tree()

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

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

# Build eggs
for version in ['2.5', '2.6', '2.7']:
    cmd='python'+version+' ./setup_egg.py bdist_egg'
    stat = os.system(cmd)