Changeset 13354
- Timestamp:
- 09/13/12 10:50:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/matplotlib/install-osx.sh
r13246 r13354 4 4 PYTHON=python${pythonversion} 5 5 6 export C_INCLUDE_PATH="$C_INCLUDE_PATH:/usr/include/c++/4.2.1" 6 7 export GIT_SSL_NO_VERIFY=true 7 export CC="gcc -fPIC" 8 export CXX="g++ -fPIC" 9 export F77="gfortran -fPIC" 10 export FC="gfortran -fPIC" 11 export FFLAGS=-ff2c 8 export CC="gcc -fPIC -arch x86_64 -I/usr/include/c++/4.2.1" 9 export CXX="g++ -fPIC -arch x86_64 -I/usr/include/c++/4.2.1" 10 export F77="gfortran -fPIC -arch x86_64 -I/usr/include/c++/4.2.1" 11 export FC="gfortran -fPIC -arch x86_64 -I/usr/include/c++/4.2.1" 12 export FFLAGS="-ff2c -arch x86_64 -I/usr/include/c++/4.2.1" 13 export ARCHFLAGS="-arch x86_64 -I/usr/include/c++/4.2.1" 14 12 15 13 16 … … 16 19 mkdir deps 17 20 cd src 18 exit 19 make -f make.osx PREFIX=$ISSM_DIR/externalpackages/matplotlib/deps PYVERSION=$pythonversion fetch deps mpl_install_std 20 ${PYTHON} -c "import matplotlib; print 'Installed matplotlib', matplotlib.__version__, matplotlib.__file__" 21 22 #only try this if the classic python setup.py build approach does not work. The approach in the next 3 lines can 23 #trigger issues of permissions with freetype. Sometimes it is better to independently install freetype2 (from the 24 #issm externalpackages) as sudo (or root), so that the python script can detect its existence automatically. 25 #sudo make -f make.osx PREFIX=$ISSM_DIR/externalpackages/matplotlib/deps PYVERSION=$pythonversion fetch deps mpl_install_std 26 #sudo make -f make.osx PREFIX=$ISSM_DIR/externalpackages/matplotlib/deps PYVERSION=$pythonversion mpl_install_std 27 #${PYTHON} -c "import matplotlib; print 'Installed matplotlib', matplotlib.__version__, matplotlib.__file__" 28 29 30 #to be tried: first get freetype and zlib and libpng installed in sudo mode 31 python setup.py build 32 python setup.py install
Note:
See TracChangeset
for help on using the changeset viewer.