File: python_fix.sh

package info (click to toggle)
libsbml 5.20.5%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 117,108 kB
  • sloc: cpp: 469,781; xml: 364,270; ansic: 54,078; python: 12,540; makefile: 9,759; sh: 9,245; cs: 8,586; java: 8,151; perl: 6,133; ruby: 4,760; javascript: 1,605; php: 202; csh: 3
file content (5 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (8)
1
2
3
4
5
#!/bin/sh
PYTH=$(basename $(python-config --includes | awk '{print $1}' | cut -dI -f2))
LINE=$(grep -n src/bindings/python/CMakeFiles/binding_python_lib.dir/depend build/CMakeFiles/Makefile2 | cut -d: -f1)

sed -i ""$LINE"i\\\tsed -i \"s#<Python.h>#<"$PYTH"/Python.h>#g\" src/bindings/python/libsbml_wrap.cpp" build/CMakeFiles/Makefile2