Mac install script
This commit is contained in:
parent
b21ad9c412
commit
58112591b9
2 changed files with 33 additions and 1 deletions
|
|
@ -32,7 +32,9 @@ cp -R -f $pylibdir/MixMaster/* $PYDIR/MixMaster
|
|||
cp -f $pylibdir/ctml_writer.py $PYDIR
|
||||
cp -f ~/setup_cantera $CTDIR
|
||||
|
||||
cp -f /Users/dgg/dv/sf/cantera/License.txt $RESDIR
|
||||
chmod +x @ctroot@/tools/src/postflight
|
||||
cp -f @ctroot@/tools/src/postflight $RESDIR
|
||||
cp -f @ctroot@/License.rtf $RESDIR
|
||||
|
||||
cp -R -f $pylibdir/Numeric/* $NUMPYDIR/Numeric
|
||||
cp -f $pylibdir/Numeric.pth $NUMPYDIR
|
||||
|
|
|
|||
30
tools/src/postflight
Executable file
30
tools/src/postflight
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
apps=$2Applications
|
||||
cd $INSTALLER_TEMP
|
||||
rm -f setup.py
|
||||
cat > setup.py << EOF
|
||||
try:
|
||||
from distutils.core import setup
|
||||
setup(name="Cantera Localization",
|
||||
version="1.0",
|
||||
description="Defines location of Cantera",
|
||||
long_description="""
|
||||
""",
|
||||
author="Prof. D. G. Goodwin, Caltech",
|
||||
author_email="dgoodwin@caltech.edu",
|
||||
url="http://www.cantera.org",
|
||||
py_modules = ["cantera_loc"],
|
||||
)
|
||||
except:
|
||||
pass
|
||||
EOF
|
||||
rm -f cantera_loc.py
|
||||
cat > cantera_loc.py << AOF
|
||||
# Cantera localization module.
|
||||
CANTERA_INSTALL_DIR=$apps/Cantera
|
||||
CANTERA_DATA=$apps/Cantera/data
|
||||
AOF
|
||||
python setup.py install
|
||||
|
||||
|
||||
Loading…
Add table
Reference in a new issue