forked from h5py/h5py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pavement.py
35 lines (31 loc) · 1.18 KB
/
pavement.py
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
29
30
31
32
33
34
35
from paver.easy import *
import os
DLLS = ['h5py_hdf5.dll', 'h5py_hdf5_hl.dll', 'szip.dll', 'zlib.dll']
@task
def release_unix():
sh('python setup.py clean')
sh('python setup.py configure --reset --hdf5-version=1.8.4')
sh('python setup.py build -f')
sh('python setup.py test')
sh('python setup.py sdist')
print("Unix release done. Distribution tar file is in dist/")
@task
def release_windows():
for pyver in (27, 34):
exe = r'C:\Python%d\Python.exe' % pyver
hdf5 = r'c:\hdf5\Python%d' % pyver
sh('%s setup.py clean' % exe)
sh('%s setup.py configure --reset --hdf5-version=1.8.13 --hdf5=%s' % (exe, hdf5))
for dll in DLLS:
sh('copy c:\\hdf5\\Python%d\\bin\\%s h5py /Y' % (pyver, dll))
sh('%s setup.py build -f' % exe)
sh('%s setup.py test' % exe)
sh('%s setup.py bdist_wininst' % exe)
print ("Windows exe release done. Distribution files are in dist/")
for dll in DLLS:
os.unlink('h5py\\%s' % dll)
@task
@consume_args
def git_summary(options):
sh('git log --no-merges --pretty=oneline --abbrev-commit %s..HEAD'%options.args[0])
sh('git shortlog -s -n %s..HEAD'%options.args[0])