You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
354 B
Bash

#!/bin/sh
# Ignore first argument
pydir=$(dirname $0)
shift
for arg in $@; do
case $arg in
--prefix|--exec-prefix)
echo "${pydir}"
;;
--includes)
echo "-I${pydir}/include"
;;
--libs|--ldflags)
echo "-L${pydir}/libs -lpython37"
;;
esac
shift
done