python3-config.sh (267B)
1 #!/bin/sh
2
3 if [ $# -ne 1 ]; then
4 echo "python3-flags.sh [--ldflags|--includes]"
5 exit 1
6 fi
7
8 if [ ! -z "$PYTHON_CONFIG" ]; then
9 BIN=$PYTHON_CONFIG
10 else
11 BIN=python3-config
12 fi
13
14 $BIN $1 --embed > /dev/null 2>&1
15
16 if [ $? -eq 0 ]; then
17 $BIN $1 --embed
18 else
19 $BIN $1
20 fi