Commit 0fa3f3eda07ed8f354ef2c673e9ee528e1a837fb
1 parent
eedd70db
Add Python include path in search for Python.h (#3329)
# Conflicts: # NEWS # README.md
Showing
3 changed files
with
13 additions
and
4 deletions
ChangeLog
| ... | ... | @@ -4,11 +4,12 @@ |
| 4 | 4 | ======================== |
| 5 | 5 | |
| 6 | 6 | |
| 7 | -2020-08-21 | |
| 7 | +2020-09-04 | |
| 8 | 8 | |
| 9 | 9 | * Bug fix version 1.7.1 released |
| 10 | 10 | ================================ |
| 11 | 11 | |
| 12 | + Add Python include path in search for Python.h (#3329) | |
| 12 | 13 | Test for Big Sur in configuration step (#3326) |
| 13 | 14 | Copy Python modules into pyext/gammalib folder (#3322) |
| 14 | 15 | Write units of response cubes into FITS files (#3321) | ... | ... |
configure.ac
| ... | ... | @@ -921,7 +921,10 @@ else |
| 921 | 921 | python_path=`$PYTHON -c "import distutils.sysconfig; \ |
| 922 | 922 | print(distutils.sysconfig.get_python_inc());"` |
| 923 | 923 | if test -n "${python_path}"; then |
| 924 | - AC_CHECK_HEADERS($python_path/Python.h, [has_python_h="yes"], [has_python_h="no"]) | |
| 924 | + SAVED_CPPFLAGS="$CPPFLAGS" | |
| 925 | + CPPFLAGS="$CPPFLAGS -I$python_path" | |
| 926 | + AC_CHECK_HEADERS($python_path/Python.h, [has_python_h="yes"], [has_python_h="no"]) | |
| 927 | + CPPFLAGS=$SAVED_CPPFLAGS | |
| 925 | 928 | python_path="-I$python_path" |
| 926 | 929 | fi |
| 927 | 930 | PYTHON_CPPFLAGS=$python_path |
| ... | ... | @@ -963,7 +966,10 @@ else |
| 963 | 966 | PY_INCLUDE="$PY_INCLUDE$PYTHON_VERSION" |
| 964 | 967 | |
| 965 | 968 | # Check if we have Python.h |
| 969 | + SAVED_CPPFLAGS="$CPPFLAGS" | |
| 970 | + CPPFLAGS="$CPPFLAGS -I$PY_INCLUDE" | |
| 966 | 971 | AC_CHECK_HEADERS($PY_INCLUDE/Python.h, [has_python_h="yes"], [has_python_h="no"]) |
| 972 | + CPPFLAGS=$SAVED_CPPFLAGS | |
| 967 | 973 | |
| 968 | 974 | fi |
| 969 | 975 | ... | ... |
doc/source/admin/release_history/1.7.1.rst
| 1 | 1 | .. _1.7.1: |
| 2 | 2 | |
| 3 | -GammaLib 1.7.1 release (21 August 2020) | |
| 4 | -======================================= | |
| 3 | +GammaLib 1.7.1 release (4 September 2020) | |
| 4 | +========================================= | |
| 5 | 5 | |
| 6 | 6 | Overview |
| 7 | 7 | -------- |
| ... | ... | @@ -10,6 +10,8 @@ GammaLib 1.7.1 is a bug fix release for GammaLib release 1.7. |
| 10 | 10 | |
| 11 | 11 | The following bugs were fixed: |
| 12 | 12 | |
| 13 | +* [`3329 <https://cta-redmine.irap.omp.eu/issues/3329>`_] - | |
| 14 | + Add Python include path in search for ``Python.h`` | |
| 13 | 15 | * [`3326 <https://cta-redmine.irap.omp.eu/issues/3326>`_] - |
| 14 | 16 | Test for Big Sur in configuration step |
| 15 | 17 | * [`3322 <https://cta-redmine.irap.omp.eu/issues/3322>`_] - | ... | ... |