mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
21 lines
267 B
Bash
Executable File
21 lines
267 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $# -ne 1 ]; then
|
|
echo "python3-flags.sh [--ldflags|--includes]"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -z "$PYTHON_CONFIG" ]; then
|
|
BIN=$PYTHON_CONFIG
|
|
else
|
|
BIN=python3-config
|
|
fi
|
|
|
|
$BIN $1 --embed > /dev/null 2>&1
|
|
|
|
if [ $? -eq 0 ]; then
|
|
$BIN $1 --embed
|
|
else
|
|
$BIN $1
|
|
fi
|