forked from neuronsimulator/nrn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bldnrnmacpkg.sh
34 lines (27 loc) · 952 Bytes
/
bldnrnmacpkg.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
#!/bin/bash
set -e
# distribution built with
# sh bldnrnmacpkg.sh python3 /Volumes/HinesWD/mac/anaconda3/bin/python python
#sh bldnrnmac.sh python3 /Volumes/HinesWD/mac/anaconda3/bin/python /Volumes/HinesWD/mac/anaconda2/bin/python
INST=/Applications/NEURON-7.5/nrn
cd $HOME/neuron/nrnobj
export MACOSX_DEPLOYMENT_TARGET=10.7
bld () {
rm -r -f src/nrnpython/build
../nrn/configure --prefix=$INST --with-paranrn=dynamic \
--with-nrnpython=dynamic --with-pyexe=$1 $2 CYTHON=/Volumes/HinesWD/mac/anaconda2/bin/cython
make -j 2 install
}
bld $1 ""
shift
for i in $* ; do
bld $i "--with-nrnpython-only"
done
make after_install
#/Applications/Packages.app from
# http://s.sudre.free.fr/Software/Packages/about.html
# For mac to do a productsign, need my developerID_installer.cer
# and Neurondev.p12 file. To add to the keychain, double click each
# of those files. By default, I added my cerificate to the login keychain.
make pkg
make alphadist