| 1 |
#!/usr/bin/env python3 |
| 2 |
"""IPython release build script. |
| 3 |
""" |
| 4 |
import os |
| 5 |
import sys |
| 6 |
|
| 7 |
from toollib import sh, get_ipdir, cd, build_command |
| 8 |
|
| 9 |
def build_release(): |
| 10 |
|
| 11 |
# Get main ipython dir, this will raise if it doesn't pass some checks |
| 12 |
ipdir = get_ipdir() |
| 13 |
cd(ipdir) |
| 14 |
|
| 15 |
# Build source and binary distros |
| 16 |
sh(build_command) |
| 17 |
# don't try to change, xz, bz2 deprecated. |
| 18 |
sh(' '.join([sys.executable, 'tools/retar.py', 'dist/*.gz'])) |
| 19 |
|
| 20 |
if __name__ == '__main__': |
| 21 |
build_release() |