summaryrefslogtreecommitdiff
path: root/pavement.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2015-10-14 23:22:00 +0200
committerRalf Gommers <ralf.gommers@gmail.com>2015-10-14 23:22:00 +0200
commit6587854828a31ea873499a171af9b794cd0b8b17 (patch)
treeb0a11fde0b620f24a9e2c6cf894aaf0b9385a6f6 /pavement.py
parent972dbd00152aaec53369fc82913286a0f93b5ca6 (diff)
downloadnumpy-6587854828a31ea873499a171af9b794cd0b8b17.tar.gz
REL: update Paver file to ensure sdist contents are OK for releases.
Diffstat (limited to 'pavement.py')
-rw-r--r--pavement.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pavement.py b/pavement.py
index acceed0ad..f4b1b2b16 100644
--- a/pavement.py
+++ b/pavement.py
@@ -549,8 +549,16 @@ def tarball_name(type='gztar'):
@task
def sdist(options):
+ # First clean the repo and update submodules (for up-to-date doc html theme
+ # and Sphinx extensions)
+ sh('git clean -xdf')
+ sh('git submodule init')
+ sh('git submodule update')
+
# To be sure to bypass paver when building sdist... paver + numpy.distutils
# do not play well together.
+ # Cython is run over all Cython files in setup.py, so generated C files
+ # will be included.
sh('python setup.py sdist --formats=gztar,zip')
# Copy the superpack into installers dir