ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change
on this file since d7ff531 was
8ca1ba1,
checked in by trnielsen, 8 years ago
|
Ticket #419: OSX Linux - Move GIT revision nr to build script
|
-
Property mode set to
100755
|
File size:
1.5 KB
|
Line | |
---|
1 | export PATH=$PATH:/usr/local/bin/ |
---|
2 | |
---|
3 | PYTHON=${PYTHON:-`which python`} |
---|
4 | EASY_INSTALL=${EASY_INSTALL:-`which easy_install`} |
---|
5 | PYLINT=${PYLINT:-`which pylint`} |
---|
6 | |
---|
7 | export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/utils |
---|
8 | export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview/sasview-install |
---|
9 | export PYTHONPATH=$PYTHONPATH:/Library/Python/2.7/site-packages |
---|
10 | |
---|
11 | export LC_ALL=en_US.UTF-8 |
---|
12 | export LANG=en_US.UTF-8 |
---|
13 | |
---|
14 | |
---|
15 | cd $WORKSPACE |
---|
16 | |
---|
17 | # SET SASVIEW GITHASH |
---|
18 | cd $WORKSPACE |
---|
19 | cd sasview/sasview |
---|
20 | githash=$( git rev-parse HEAD ) |
---|
21 | sed -i.bak s/GIT_COMMIT/$githash/g __init__.py |
---|
22 | |
---|
23 | |
---|
24 | # SASMODLES |
---|
25 | cd $WORKSPACE |
---|
26 | cd sasmodels |
---|
27 | |
---|
28 | rm -rf build |
---|
29 | rm -rf dist |
---|
30 | |
---|
31 | $PYTHON setup.py clean |
---|
32 | $PYTHON setup.py build |
---|
33 | |
---|
34 | |
---|
35 | # SASMODLES - BUILD DOCS |
---|
36 | cd doc |
---|
37 | make html |
---|
38 | |
---|
39 | cd $WORKSPACE |
---|
40 | cd sasmodels |
---|
41 | $PYTHON setup.py bdist_egg |
---|
42 | |
---|
43 | |
---|
44 | # SASVIEW |
---|
45 | cd $WORKSPACE |
---|
46 | cd sasview |
---|
47 | rm -rf sasview-install |
---|
48 | mkdir sasview-install |
---|
49 | rm -rf utils |
---|
50 | mkdir utils |
---|
51 | rm -rf dist |
---|
52 | rm -rf build |
---|
53 | |
---|
54 | |
---|
55 | # INSTALL SASMODELS |
---|
56 | cd $WORKSPACE |
---|
57 | cd sasmodels |
---|
58 | cd dist |
---|
59 | $EASY_INSTALL -d $WORKSPACE/sasview/utils sasmodels*.egg |
---|
60 | |
---|
61 | |
---|
62 | # BUILD SASVIEW |
---|
63 | cd $WORKSPACE |
---|
64 | cd sasview |
---|
65 | $PYTHON setup.py clean |
---|
66 | $PYTHON setup.py build docs bdist_egg |
---|
67 | |
---|
68 | |
---|
69 | # INSTALL SASVIEW |
---|
70 | cd $WORKSPACE |
---|
71 | cd sasview |
---|
72 | cd dist |
---|
73 | $EASY_INSTALL -d $WORKSPACE/sasview/sasview-install sasview*.egg |
---|
74 | |
---|
75 | |
---|
76 | # TEST |
---|
77 | cd $WORKSPACE |
---|
78 | cd sasview |
---|
79 | cd test |
---|
80 | $PYTHON utest_sasview.py |
---|
81 | |
---|
82 | # PYLINT |
---|
83 | cd $WORKSPACE |
---|
84 | cd sasview |
---|
85 | $PYLINT --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview | tee test/sasview.txt |
---|
86 | |
---|
87 | # BUILD APP |
---|
88 | cd $WORKSPACE |
---|
89 | cd sasview/sasview |
---|
90 | $PYTHON setup_mac.py py2app |
---|
91 | |
---|
Note: See
TracBrowser
for help on using the repository browser.