File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+
3
+ if [ -z $1 ]; then
4
+ echo " Please specify the location of your Python 3 header files, E.G: /usr/include/python3.5"
5
+ exit 1
6
+ fi
7
+
2
8
Kernel=$( uname -s)
3
9
case " $Kernel " in
4
10
Linux) Kernel=" linux" ;;
@@ -38,4 +44,4 @@ cp -f NeticaEx.o Netica_API_504_Linux/lib/NeticaEx.o
38
44
# compiling cython to c
39
45
cython -a NeticaPy.pyx
40
46
# compiling C to .so file
41
- gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -I/usr/include/python3.5 Netica_API_504_Linux/lib/NeticaEx.o NeticaPy.c -o NeticaPy.so -INetica_API_504_Linux/src -LNetica_API_504_Linux/lib -lrt -lnetica -lpthread -lstdc++ -lm
47
+ gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -I$1 Netica_API_504_Linux/lib/NeticaEx.o NeticaPy.c -o NeticaPy.so -INetica_API_504_Linux/src -LNetica_API_504_Linux/lib -lrt -lnetica -lpthread -lstdc++ -lm
You can’t perform that action at this time.
0 commit comments