Remove references to particular Python version (use the system default
version); change include statements to use Python.h in the Python framework
on Mac OS X systems; leave it using regular Python.h on other systems.
Note: I think this *ought* to work properly on Linux systems, but I don't have
a system to test it on...
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@117612 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/build-swig-Python.sh b/scripts/Python/build-swig-Python.sh
index 56a54ce..f412fb8 100755
--- a/scripts/Python/build-swig-Python.sh
+++ b/scripts/Python/build-swig-Python.sh
@@ -179,3 +179,14 @@
then
python ${current_dir}/append-debugger-id.py ${CONFIG_BUILD_DIR}
fi
+
+# Fix the "#include" statement in the swig output file
+
+if [ -f "${current_dir}/edit-swig-python-wrapper-file.py" ]
+then
+ python ${current_dir}/edit-swig-python-wrapper-file.py
+ if [ -f "${swig_output_file}.edited" ]
+ then
+ mv "${swig_output_file}.edited" ${swig_output_file}
+ fi
+fi