build_release
21 lines
| 493 B
| text/plain
|
TextLexer
/ tools / build_release
Thomas Kluyver
|
r24250 | #!/usr/bin/env python3 | ||
Fernando Perez
|
r2118 | """IPython release build script. | ||
ville
|
r988 | """ | ||
Fernando Perez
|
r6601 | import os | ||
Matthias Bussonnier
|
r25769 | import sys | ||
Fernando Perez
|
r6601 | |||
Matthias Bussonnier
|
r27319 | from toollib import sh, get_ipdir, cd, build_command | ||
Matthias Bussonnier
|
r22043 | |||
def build_release(): | ||||
# Get main ipython dir, this will raise if it doesn't pass some checks | ||||
ipdir = get_ipdir() | ||||
cd(ipdir) | ||||
ville
|
r988 | |||
Matthias Bussonnier
|
r22043 | # Build source and binary distros | ||
Matthias Bussonnier
|
r27319 | sh(build_command) | ||
Matthias Bussonnier
|
r27317 | # don't try to change, xz, bz2 deprecated. | ||
Matthias Bussonnier
|
r25769 | sh(' '.join([sys.executable, 'tools/retar.py', 'dist/*.gz'])) | ||
Ville M. Vainio
|
r1197 | |||
Matthias Bussonnier
|
r22043 | if __name__ == '__main__': | ||
build_release() | ||||