build_release
28 lines
| 592 B
| text/plain
|
TextLexer
/ tools / build_release
Fernando Perez
|
r1206 | #!/usr/bin/env python | ||
Fernando Perez
|
r2118 | """IPython release build script. | ||
ville
|
r988 | """ | ||
Fernando Perez
|
r6601 | |||
import os | ||||
MinRK
|
r17631 | from shutil import rmtree | ||
Fernando Perez
|
r6601 | |||
Fernando Perez
|
r2118 | from toollib import * | ||
ville
|
r988 | |||
Fernando Perez
|
r2118 | # Get main ipython dir, this will raise if it doesn't pass some checks | ||
ipdir = get_ipdir() | ||||
cd(ipdir) | ||||
ville
|
r988 | |||
Fernando Perez
|
r2118 | # Load release info | ||
Min RK
|
r20277 | execfile(pjoin('IPython', 'core', 'release.py'), globals()) | ||
ville
|
r988 | |||
Fernando Perez
|
r2118 | # Check that everything compiles | ||
compile_tree() | ||||
ville
|
r988 | |||
Fernando Perez
|
r2118 | # Cleanup | ||
Fernando Perez
|
r4451 | for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'), | ||
pjoin('docs', 'source', 'api', 'generated')]: | ||||
Fernando Perez
|
r2118 | if os.path.isdir(d): | ||
MinRK
|
r17631 | rmtree(d) | ||
Ville M. Vainio
|
r1197 | |||
# Build source and binary distros | ||||
Fernando Perez
|
r6605 | sh(sdists) | ||
MinRK
|
r17581 | sh(wheels) | ||