File: python_fix.sh

package info (click to toggle)
libsbml 5.19.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 157,308 kB
  • sloc: cpp: 972,686; xml: 332,385; python: 128,188; cs: 57,289; ansic: 54,332; java: 27,244; makefile: 9,740; perl: 9,114; sh: 8,777; 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