-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_packages.sh
executable file
·41 lines (31 loc) · 1.86 KB
/
make_packages.sh
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
36
37
38
39
#!/bin/bash
savReaderWriter=~/Desktop/savReaderWriter
cd $savReaderWriter
version=$(cat VERSION)
echo "***********************************************************************"
echo "Start running setup.py with bdist_deb option"
echo "***********************************************************************"
# temporarily stash the irrelevant I/O files in /tmp
folders="aix64 hpux_it lin64 sol64 zlinux64 macos win32 win64"
for folder in $folders; do mv $savReaderWriter/savReaderWriter/spssio/$folder /tmp; done
python setup.py --command-packages=stdeb.command bdist_deb
src=$savReaderWriter/deb_dist/python-savreaderwriter_$version-1_all.deb
dst=$savReaderWriter/dist/savReaderWriter-$version.lin32.deb
mv $src $dst
for folder in $folders; do mv /tmp/$folder $savReaderWriter/savReaderWriter/spssio; done
rm -r $savReaderWriter/deb_dist
echo "***********************************************************************"
echo "Start running setup.py with bdist_wininst option (correct???)"
echo "***********************************************************************"
folders="aix64 hpux_it lin32 lin64 sol64 zlinux64 macos win64"
for folder in $folders; do mv $savReaderWriter/savReaderWriter/spssio/$folder /tmp; done
python setup.py bdist_wininst
for folder in $folders; do mv /tmp/$folder $savReaderWriter/savReaderWriter/spssio; done
echo "***********************************************************************"
echo "Start running setup.py with sdist gztar,zip"
echo "***********************************************************************"
python setup.py sdist --formats=gztar,zip
echo "***********************************************************************"
echo "Start running setup.py with build_sphinx (documentation)"
echo "***********************************************************************"
python setup.py check build_sphinx --source-dir=savReaderWriter/documentation -v