macOS build gridslice library

This commit is contained in:
Michael James 2017-07-14 09:18:56 -06:00 committed by mjames-upc
parent 9da5f567ed
commit 12e2130806
3 changed files with 11 additions and 20 deletions

View file

@ -0,0 +1,11 @@
#!/bin/bash -fv
#
# build_osx.sh: Build gridslice library for macOS
# author: mjames@ucar
#
export C_INCLUDE_PATH=/System/Library/Frameworks/Python.framework/Headers
export CFLAGS="-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/ -I /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include $CFLAGS"
gcc -c -fPIC $CFLAGS gridslice.c -o gridslice.o
gcc -c -fPIC $CFLAGS sliceConvert.c -o sliceConvert.o
gcc gridslice.o sliceConvert.o -lpython -shared -o gridslice.so
# cp gridslice.so /Library/Python/2.7/site-packages/

View file

@ -1,23 +1,3 @@
/*****************************************************************************************
* COPYRIGHT (c), 2009, RAYTHEON COMPANY
* ALL RIGHTS RESERVED, An Unpublished Work
*
* RAYTHEON PROPRIETARY
* If the end user is not the U.S. Government or any agency thereof, use
* or disclosure of data contained in this source code file is subject to
* the proprietary restrictions set forth in the Master Rights File.
*
* U.S. GOVERNMENT PURPOSE RIGHTS NOTICE
* If the end user is the U.S. Government or any agency thereof, this source
* code is provided to the U.S. Government with Government Purpose Rights.
* Use or disclosure of data contained in this source code file is subject to
* the "Government Purpose Rights" restriction in the Master Rights File.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* Use or disclosure of data contained in this source code file is subject to
* the export restrictions set forth in the Master Rights File.
******************************************************************************************/
/* /*
* Python module that utilizes the AWIPSI sliceConvert functions to offer * Python module that utilizes the AWIPSI sliceConvert functions to offer
* slicing capability to numpy arrays. * slicing capability to numpy arrays.

Binary file not shown.