Commit 1c0f5e24 authored by Karl Wette's avatar Karl Wette
Browse files

Require SWIG version >= 3.0.10, and NumPy version >= 1.7

- Allows removal of most work-arounds for older SWIG and NumPy versions,
  apart from lal/swig/SWIGTestLALPython.py which still needs SWIG >= 3.0.11
- Use MIN_SWIG_VERSION and MIN_NUMPY_VERSION Autoconf output variables to
  supply minimum SWIG and Numpy versions to packaging configuration files
- Harmonise minimum SWIG version in conda/ files
parent 0e56b1fd
......@@ -27,6 +27,6 @@ dependencies:
- python = 2.7
- scipy
- six
- swig >= 3.0.12
- swig >= 3.0.10
- texlive-core
- zlib
......@@ -26,6 +26,6 @@ dependencies:
- python = 3.6
- scipy
- six
- swig >= 3.0.12
- swig >= 3.0.10
- texlive-core
- zlib
......@@ -26,6 +26,6 @@ dependencies:
- python = 3.7
- scipy
- six
- swig >= 3.0.12
- swig >= 3.0.10
- texlive-core
- zlib
......@@ -27,6 +27,6 @@ dependencies:
- python = 2.7
- scipy
- six
- swig >= 3.0.12
- swig >= 3.0.10
- texlive-core
- zlib
......@@ -26,6 +26,6 @@ dependencies:
- python = 3.6
- scipy
- six
- swig >= 3.0.12
- swig >= 3.0.10
- texlive-core
- zlib
......@@ -26,6 +26,6 @@ dependencies:
- python = 3.7
- scipy
- six
- swig >= 3.0.12
- swig >= 3.0.10
- texlive-core
- zlib
......@@ -2,7 +2,14 @@
# lalsuite_swig.m4 - SWIG configuration
# Author: Karl Wette, 2011--2017
#
# serial 108
# serial 109
AC_DEFUN([_LALSUITE_MIN_SWIG_VERSION],[
# $0: minimum version of SWIG and other dependencies
AC_SUBST([MIN_SWIG_VERSION],[3.0.10])
AC_SUBST([MIN_NUMPY_VERSION],[1.7])
# end $0
])
AC_DEFUN([_LALSUITE_CHECK_SWIG_VERSION],[
# $0: check the version of $1, and store it in ${swig_version}
......@@ -135,31 +142,31 @@ AC_DEFUN([LALSUITE_ENABLE_SWIG_LANGUAGE],[
AC_DEFUN([LALSUITE_USE_SWIG],[
# $0: configure enabled SWIG bindings
AC_REQUIRE([_LALSUITE_MIN_SWIG_VERSION])
AS_IF([test "${swig_build_iface}" = true],[
# configure SWIG binding languages
swig_min_version=2.0.12
swig_min_version_info=""
min_swig_version_info=""
LALSUITE_USE_SWIG_OCTAVE
LALSUITE_USE_SWIG_PYTHON
# check for SWIG binary with version ${swig_min_version} or later;
# check for SWIG binary with version ${MIN_SWIG_VERSION} or later;
# use ${SWIG} if set, otherwise check common SWIG binary names
AC_ARG_VAR([SWIG],[the SWIG tool])
AS_IF([test "x${SWIG}" != x],[
AC_MSG_CHECKING([if ${SWIG} version is at least ${swig_min_version}])
AC_MSG_CHECKING([if ${SWIG} version is at least ${MIN_SWIG_VERSION}])
_LALSUITE_CHECK_SWIG_VERSION([${SWIG}])
LALSUITE_VERSION_COMPARE([${swig_version}],[<],[${swig_min_version}],[
LALSUITE_VERSION_COMPARE([${swig_version}],[<],[${MIN_SWIG_VERSION}],[
AC_MSG_RESULT([no (${swig_version})])
AC_MSG_ERROR([[SWIG version ${swig_min_version} or later is required ${swig_min_version_info}
AC_MSG_ERROR([[SWIG version ${MIN_SWIG_VERSION} or later is required ${min_swig_version_info}
SWIG support can be disabled by using the --disable-swig configure option]])
])
AC_MSG_RESULT([yes (${swig_version})])
],[
AC_PATH_PROGS_FEATURE_CHECK([SWIG],[swig swig2.0 swig3.0],[
AC_MSG_CHECKING([if ${ac_path_SWIG} version is at least ${swig_min_version}])
AC_PATH_PROGS_FEATURE_CHECK([SWIG],[swig swig3.0],[
AC_MSG_CHECKING([if ${ac_path_SWIG} version is at least ${MIN_SWIG_VERSION}])
_LALSUITE_CHECK_SWIG_VERSION([${ac_path_SWIG}])
LALSUITE_VERSION_COMPARE([${swig_version}],[>=],[${swig_min_version}],[
LALSUITE_VERSION_COMPARE([${swig_version}],[>=],[${MIN_SWIG_VERSION}],[
ac_path_SWIG_found=true
AC_MSG_RESULT([yes (${swig_version})])
ac_cv_path_SWIG="${ac_path_SWIG}"
......@@ -168,14 +175,14 @@ SWIG support can be disabled by using the --disable-swig configure option]])
AC_MSG_RESULT([no (${swig_version})])
])
],[
AC_MSG_ERROR([[SWIG version ${swig_min_version} or later is required ${swig_min_version_info}
AC_MSG_ERROR([[SWIG version ${MIN_SWIG_VERSION} or later is required ${min_swig_version_info}
SWIG support can be disabled by using the --disable-swig configure option]])
])
SWIG="${ac_cv_path_SWIG}"
])
AS_IF([test "x${swig_min_recommend_version}" != x],[
LALSUITE_VERSION_COMPARE([${swig_version}],[<],[${swig_min_recommend_version}],[
AC_MSG_WARN([SWIG version ${swig_min_recommend_version} or later is recommended ${swig_min_version_info}])
AS_IF([test "x${min_swig_recommend_version}" != x],[
LALSUITE_VERSION_COMPARE([${swig_version}],[<],[${min_swig_recommend_version}],[
AC_MSG_WARN([SWIG version ${min_swig_recommend_version} or later is recommended ${min_swig_version_info}])
])
])
......@@ -337,23 +344,17 @@ AC_DEFUN([LALSUITE_USE_SWIG_OCTAVE],[
])
# set minimum SWIG version requirements based on Octave version
LALSUITE_VERSION_COMPARE([${octave_version}],[>=],[4.0.0],[
LALSUITE_VERSION_COMPARE([${swig_min_version}],[<],[3.0.7],[
swig_min_version=3.0.7
swig_min_version_info="for Octave version ${octave_version}"
])
])
LALSUITE_VERSION_COMPARE([${octave_version}],[>=],[4.2.0],[
LALSUITE_VERSION_COMPARE([${swig_min_version}],[<],[3.0.12],[
swig_min_version=3.0.12
swig_min_version_info="for Octave version ${octave_version}"
LALSUITE_VERSION_COMPARE([${MIN_SWIG_VERSION}],[<],[3.0.12],[
MIN_SWIG_VERSION=3.0.12
min_swig_version_info="for Octave version ${octave_version}"
])
])
LALSUITE_VERSION_COMPARE([${octave_version}],[>=],[4.4.0],[
LALSUITE_VERSION_COMPARE([${swig_min_version}],[<],[4.0.2],[
# TODO: once SWIG 4.0.2 is released and widely available, replace 'swig_min_recommend_version' with 'swig_min_version'
swig_min_recommend_version=4.0.2
swig_min_version_info="for Octave version ${octave_version}"
LALSUITE_VERSION_COMPARE([${MIN_SWIG_VERSION}],[<],[4.0.2],[
# TODO: once SWIG 4.0.2 is released and widely available, replace 'min_swig_recommend_version' with 'MIN_SWIG_VERSION'
min_swig_recommend_version=4.0.2
min_swig_version_info="for Octave version ${octave_version}"
])
])
......@@ -518,12 +519,6 @@ AC_DEFUN([LALSUITE_USE_SWIG_PYTHON],[
AC_MSG_ERROR([could not determine ${PYTHON} version])
])
AC_MSG_RESULT([${PYTHON_VERSION}])
LALSUITE_VERSION_COMPARE([${PYTHON_VERSION}],[>=],[3.0.0],[
LALSUITE_VERSION_COMPARE([${swig_min_version}],[<],[3.0.9],[
swig_min_version=3.0.9
swig_min_version_info="for Python version ${PYTHON_VERSION}"
])
])
# check for distutils
AC_MSG_CHECKING([for distutils])
......@@ -536,7 +531,6 @@ EOD
AC_MSG_RESULT([yes])
# check for NumPy
numpy_min_version=1.3
AC_MSG_CHECKING([for NumPy])
numpy_version=[`cat <<EOD | ${PYTHON} - 2>/dev/null
import numpy
......@@ -549,10 +543,10 @@ EOD`]
# check NumPy version
AC_MSG_CHECKING([NumPy version])
LALSUITE_VERSION_COMPARE([${numpy_version}],[<],[${numpy_min_version}],[
AC_MSG_ERROR([NumPy version ${numpy_min_version} or later is required])
])
AC_MSG_RESULT([${numpy_version}])
LALSUITE_VERSION_COMPARE([${numpy_version}],[<],[${MIN_NUMPY_VERSION}],[
AC_MSG_ERROR([NumPy version ${MIN_NUMPY_VERSION} or later is required])
])
# determine Python preprocessor flags
AC_SUBST([SWIG_PYTHON_CPPFLAGS],[])
......@@ -643,39 +637,14 @@ EOD`]
])
LALSUITE_POP_UVARS
# remove deprecated code in NumPy API >= 1.7
SWIG_PYTHON_CPPFLAGS="${SWIG_PYTHON_CPPFLAGS} -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION"
# check for declarations which may need compatibility code for NumPy API < 1.7
LALSUITE_PUSH_UVARS
CPPFLAGS="${SWIG_PYTHON_CPPFLAGS}"
AC_CHECK_DECL([NPY_ARRAY_WRITEABLE],[
SWIG_PYTHON_CPPFLAGS="${SWIG_PYTHON_CPPFLAGS} -DSWIGLAL_HAVE_NPY_ARRAY_WRITEABLE"
],[],[
AC_INCLUDES_DEFAULT
#include <Python.h>
#include <numpy/arrayobject.h>
])
AC_CHECK_DECL([PyArray_SetBaseObject],[
SWIG_PYTHON_CPPFLAGS="${SWIG_PYTHON_CPPFLAGS} -DSWIGLAL_HAVE_PyArray_SetBaseObject"
],[],[
AC_INCLUDES_DEFAULT
#include <Python.h>
#include <numpy/arrayobject.h>
])
LALSUITE_POP_UVARS
# ensure code is clean against minimum NumPy API
min_numpy_api_version=[`echo "NPY_${MIN_NUMPY_VERSION}_API_VERSION" | ${SED} -e 's|\.|_|g'`]
SWIG_PYTHON_CPPFLAGS="${SWIG_PYTHON_CPPFLAGS} -DNPY_NO_DEPRECATED_API=${min_numpy_api_version}"
],[
# determine SWIG Python flags
AC_SUBST([SWIG_PYTHON_FLAGS],["-O -builtin -globals globalvar"])
AC_MSG_CHECKING([if SWIG supports relative Python imports])
LALSUITE_VERSION_COMPARE([${swig_version}],[<],[3.0.0],[
AC_MSG_RESULT([no])
],[
AC_MSG_RESULT([yes])
SWIG_PYTHON_FLAGS="-py3 -relativeimport ${SWIG_PYTHON_FLAGS}"
])
AC_SUBST([SWIG_PYTHON_FLAGS],["-py3 -relativeimport -O -builtin -globals globalvar"])
])
# end $0
......
......@@ -9,6 +9,9 @@
{% set url = "file://@TARBALL@" %}
{% set sha256 = "@SHA256@" %}
{% set swig_version = "@MIN_SWIG_VERSION@" %}
{% set numpy_version = "@MIN_NUMPY_VERSION@" %}
package:
name: {{ name }}
version: {{ version }}
......@@ -35,7 +38,7 @@ requirements:
- pkg-config >=0.18.0
- make
- bc
- swig >=3.0.9
- swig >={{ swig_version }}
host:
- fftw * nompi* # [fft_impl == "fftw"]
- gsl
......@@ -73,7 +76,7 @@ outputs:
- {{ compiler('c') }}
- make
- pkg-config >=0.18.0
- swig >=3.0.9
- swig >={{ swig_version }}
host:
- gsl
- {{ pin_subpackage('lal', exact=True) }}
......
......@@ -21,7 +21,7 @@ Build-Depends: bc,
python-glue (>= @MIN_GLUE_VERSION@),
python-ligo-segments,
python-mock,
python-numpy,
python-numpy (>= @MIN_NUMPY_VERSION@),
python-pathlib,
python-pytest,
python-scipy,
......@@ -31,11 +31,11 @@ Build-Depends: bc,
python3-freezegun,
python3-glue (>= @MIN_GLUE_VERSION@),
python3-ligo-segments,
python3-numpy,
python3-numpy (>= @MIN_NUMPY_VERSION@),
python3-pytest,
python3-scipy,
python3-six,
swig (>= 3.0.9) | swig3.0 (>= 3.0.9),
swig (>= @MIN_SWIG_VERSION@) | swig3.0 (>= @MIN_SWIG_VERSION@),
zlib1g-dev
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.5
......
......@@ -34,7 +34,7 @@ BuildRequires: make
BuildRequires: pkgconfig >= 0.18.0
# swig
BuildRequires: swig >= 3.0.9
BuildRequires: swig >= @MIN_SWIG_VERSION@
# python2
BuildRequires: python2-rpm-macros
......@@ -45,7 +45,7 @@ BuildRequires: python2-freezegun
BuildRequires: python2-glue >= @MIN_GLUE_VERSION@
BuildRequires: python2-ligo-segments
BuildRequires: python2-mock
BuildRequires: python2-numpy
BuildRequires: python2-numpy >= @MIN_NUMPY_VERSION@
BuildRequires: python-pathlib
BuildRequires: pytest
BuildRequires: python2-six
......@@ -61,7 +61,7 @@ BuildRequires: python%{python3_pkgversion}-dateutil
BuildRequires: python%{python3_pkgversion}-freezegun
BuildRequires: python%{python3_pkgversion}-glue >= @MIN_GLUE_VERSION@
BuildRequires: python%{python3_pkgversion}-ligo-segments
BuildRequires: python%{python3_pkgversion}-numpy
BuildRequires: python%{python3_pkgversion}-numpy >= @MIN_NUMPY_VERSION@
BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-six
BuildRequires: python%{python3_pkgversion}-scipy
......@@ -105,7 +105,7 @@ Requires: python
Requires: python2-dateutil
Requires: python2-glue >= @MIN_GLUE_VERSION@
Requires: python2-ligo-segments
Requires: python2-numpy
Requires: python2-numpy >= @MIN_NUMPY_VERSION@
Requires: python2-scipy
Requires: python2-six
Provides: %{name}-python = %{version}-%{release}
......@@ -124,7 +124,7 @@ Requires: python%{python3_pkgversion}
Requires: python%{python3_pkgversion}-dateutil
Requires: python%{python3_pkgversion}-glue >= @MIN_GLUE_VERSION@
Requires: python%{python3_pkgversion}-ligo-segments
Requires: python%{python3_pkgversion}-numpy
Requires: python%{python3_pkgversion}-numpy >= @MIN_NUMPY_VERSION@
Requires: python%{python3_pkgversion}-scipy
Requires: python%{python3_pkgversion}-six
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
......
......@@ -43,16 +43,6 @@
import_array();
%}
// Include compatibility code for NumPy API < 1.7
%header %{
#if !defined(SWIGLAL_HAVE_NPY_ARRAY_WRITEABLE)
#define NPY_ARRAY_WRITEABLE NPY_WRITEABLE
#endif
#if !defined(SWIGLAL_HAVE_PyArray_SetBaseObject)
#define PyArray_SetBaseObject(arr, obj) do { (arr)->base = (obj); } while(0)
#endif
%}
// Name of PyObject containing the SWIG wrapping of the struct whose members are being accessed.
%header %{
#define swiglal_self() (self)
......
......@@ -13,7 +13,8 @@
{% set lal_version = "@MIN_LAL_VERSION@a0" %}
{% set lalmetaio_version = "@MIN_LALMETAIO_VERSION@a0" %}
{% set lalsimulation_version = "@MIN_LALSIMULATION_VERSION@a0" %}
{% set swig_version = "3.0.9" %}
{% set swig_version = "@MIN_SWIG_VERSION@" %}
{% set numpy_version = "@MIN_NUMPY_VERSION@" %}
package:
name: "{{ name }}"
......
......@@ -16,7 +16,7 @@ Build-Depends: debhelper (>= 9),
lalmetaio-dev (>= @MIN_LALMETAIO_VERSION@~),
lalsimulation-dev (>= @MIN_LALSIMULATION_VERSION@~),
zlib1g-dev,
swig (>= 3.0.9) | swig3.0 (>= 3.0.9),
swig (>= @MIN_SWIG_VERSION@) | swig3.0 (>= @MIN_SWIG_VERSION@),
python-all-dev,
python-glue,
python-lal (>= @MIN_LAL_VERSION@~),
......@@ -25,13 +25,13 @@ Build-Depends: debhelper (>= 9),
python-ligo-lw,
python-matplotlib,
python-mock,
python-numpy,
python-numpy (>= @MIN_NUMPY_VERSION@),
python-pathlib,
python-pytest,
python-scipy,
python3-all-dev,
python3-glue,
python3-numpy,
python3-numpy (>= @MIN_NUMPY_VERSION@),
python3-lal (>= @MIN_LAL_VERSION@~),
python3-lalmetaio (>= @MIN_LALMETAIO_VERSION@~),
python3-lalsimulation (>= @MIN_LALSIMULATION_VERSION@~),
......
......@@ -34,7 +34,7 @@ BuildRequires: make
BuildRequires: pkgconfig >= 0.18.0
# swig
BuildRequires: swig >= 3.0.9
BuildRequires: swig >= @MIN_SWIG_VERSION@
# python2
BuildRequires: pytest
......@@ -47,7 +47,7 @@ BuildRequires: python2-lalsimulation >= @MIN_LALSIMULATION_VERSION@
BuildRequires: python2-ligo-lw
BuildRequires: python2-matplotlib
BuildRequires: python2-mock
BuildRequires: python2-numpy
BuildRequires: python2-numpy >= @MIN_NUMPY_VERSION@
BuildRequires: python2-rpm-macros
BuildRequires: python2-scipy
......@@ -61,7 +61,7 @@ BuildRequires: python%{python3_pkgversion}-lalmetaio >= @MIN_LALMETAIO_VERSION@
BuildRequires: python%{python3_pkgversion}-lalsimulation >= @MIN_LALSIMULATION_VERSION@
BuildRequires: python%{python3_pkgversion}-ligo-lw
BuildRequires: python%{python3_pkgversion}-matplotlib
BuildRequires: python%{python3_pkgversion}-numpy
BuildRequires: python%{python3_pkgversion}-numpy >= @MIN_NUMPY_VERSION@
BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-scipy
BuildRequires: python3-rpm-macros
......@@ -114,7 +114,7 @@ Requires: python2-lalmetaio >= @MIN_LALMETAIO_VERSION@
Requires: python2-lalsimulation >= @MIN_LALSIMULATION_VERSION@
Requires: python2-ligo-lw
Requires: python2-ligo-segments
Requires: python2-numpy
Requires: python2-numpy >= @MIN_NUMPY_VERSION@
Requires: python2-scipy
Provides: %{name}-python = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release}
......@@ -136,7 +136,7 @@ Requires: python%{python3_pkgversion}-lalmetaio >= @MIN_LALMETAIO_VERSION@
Requires: python%{python3_pkgversion}-lalsimulation >= @MIN_LALSIMULATION_VERSION@
Requires: python%{python3_pkgversion}-ligo-lw
Requires: python%{python3_pkgversion}-ligo-segments
Requires: python%{python3_pkgversion}-numpy
Requires: python%{python3_pkgversion}-numpy >= @MIN_NUMPY_VERSION@
Requires: python%{python3_pkgversion}-scipy
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
%description -n python%{python3_pkgversion}-%{name}
......
......@@ -12,6 +12,8 @@
{% set lal_version = "@MIN_LAL_VERSION@a0" %}
{% set framel_version = "@MIN_FRAMEL_VERSION@" %}
{% set framecpp_version = "@MIN_FRAMECPPC_VERSION@" %}
{% set swig_version = "@MIN_SWIG_VERSION@" %}
{% set numpy_version = "@MIN_NUMPY_VERSION@" %}
package:
name: "{{ name }}"
......@@ -30,7 +32,7 @@ requirements:
- {{ compiler('c') }}
- make
- pkg-config
- swig >=3.0.9
- swig >={{ swig_version }}
host:
- lal >={{ lal_version }}
- ldas-tools-framecpp >={{ framecpp_version }}
......@@ -73,7 +75,7 @@ outputs:
- {{ compiler('c') }}
- make
- pkg-config
- swig >=3.0.9
- swig >={{ swig_version }}
host:
- {{ pin_subpackage('lalframe', exact=True) }}
- numpy
......
......@@ -15,16 +15,16 @@ Build-Depends: debhelper (>= 9),
libframel-dev (>= @MIN_FRAMEL_VERSION@),
liboctave-dev,
zlib1g-dev,
swig (>= 3.0.9) | swig3.0 (>= 3.0.9),
swig (>= @MIN_SWIG_VERSION@) | swig3.0 (>= @MIN_SWIG_VERSION@),
python-all-dev,
python-lal (>= @MIN_LAL_VERSION@~),
python-mock,
python-numpy,
python-numpy (>= @MIN_NUMPY_VERSION@),
python-pathlib,
python-pytest,
python3-all-dev,
python3-lal (>= @MIN_LAL_VERSION@~),
python3-numpy,
python3-numpy (>= @MIN_NUMPY_VERSION@),
python3-pytest,
lal-octave (>= @MIN_LAL_VERSION@~),
X-Python-Version: >= 2.7
......
......@@ -33,14 +33,14 @@ BuildRequires: make
BuildRequires: pkgconfig >= 0.18.0
# swig
BuildRequires: swig >= 3.0.9
BuildRequires: swig >= @MIN_SWIG_VERSION@
# python2
BuildRequires: python2-rpm-macros
BuildRequires: python-devel
BuildRequires: python2-lal >= @MIN_LAL_VERSION@
BuildRequires: python2-mock
BuildRequires: python2-numpy
BuildRequires: python2-numpy >= @MIN_NUMPY_VERSION@
BuildRequires: python-pathlib
BuildRequires: pytest
......@@ -49,7 +49,7 @@ BuildRequires: python-srpm-macros
BuildRequires: python3-rpm-macros
BuildRequires: epel-rpm-macros
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-numpy
BuildRequires: python%{python3_pkgversion}-numpy >= @MIN_NUMPY_VERSION@
BuildRequires: python%{python3_pkgversion}-lal >= @MIN_LAL_VERSION@
BuildRequires: python%{python3_pkgversion}-pytest
......@@ -89,7 +89,7 @@ Group: LAL
Requires: %{name} = %{version}
Requires: python
Requires: python2-lal >= @MIN_LAL_VERSION@
Requires: python2-numpy
Requires: python2-numpy >= @MIN_NUMPY_VERSION@
Provides: %{name}-python = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release}
%{?python_provide:%python_provide python2-%{name}}
......@@ -104,7 +104,7 @@ Group: LAL
Requires: %{name} = %{version}
Requires: python%{python3_pkgversion}
Requires: python%{python3_pkgversion}-lal >= @MIN_LAL_VERSION@
Requires: python%{python3_pkgversion}-numpy
Requires: python%{python3_pkgversion}-numpy >= @MIN_NUMPY_VERSION@
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
%description -n python%{python3_pkgversion}-%{name}
The LSC Algorithm Library for gravitational wave data analysis.
......
......@@ -17,7 +17,8 @@
{% set lalmetaio_version = "@MIN_LALMETAIO_VERSION@a0" %}
{% set lalpulsar_version = "@MIN_LALPULSAR_VERSION@a0" %}
{% set lalsimulation_version = "@MIN_LALSIMULATION_VERSION@a0" %}
{% set swig_version = "3.0.9" %}
{% set swig_version = "@MIN_SWIG_VERSION@" %}
{% set numpy_version = "@MIN_NUMPY_VERSION@" %}
package:
name: "{{ name }}"
......
......@@ -21,7 +21,7 @@ Build-Depends: debhelper (>= 9),
liboctave-dev,
libopenmpi-dev,
zlib1g-dev,
swig (>= 3.0.9) | swig3.0 (>= 3.0.9),
swig (>= @MIN_SWIG_VERSION@) | swig3.0 (>= @MIN_SWIG_VERSION@),
python-all-dev,
python-astropy (>= 1.1.1),
python-glue (>= @MIN_GLUE_VERSION@),
......@@ -38,7 +38,7 @@ Build-Depends: debhelper (>= 9),
python-lalpulsar (>= @MIN_LALPULSAR_VERSION@~),
python-matplotlib (>= 1.2.0),
python-mock,
python-numpy (>= 1.7),
python-numpy (>= @MIN_NUMPY_VERSION@),
python-pathlib,
python-pytest,
python-scipy (>= 0.9.0),
......@@ -57,7 +57,7 @@ Build-Depends: debhelper (>= 9),
python3-lalinspiral (>= @MIN_LALINSPIRAL_VERSION@~),
python3-lalpulsar (>= @MIN_LALPULSAR_VERSION@~),
python3-matplotlib (>= 1.2.0),
python3-numpy (>= 1.7),
python3-numpy (>= @MIN_NUMPY_VERSION@),
python3-pytest,
python3-scipy (>= 0.9.0),
lal-octave (>= @MIN_LAL_VERSION@~),
......@@ -142,7 +142,7 @@ Depends:
python-lalpulsar (>= @MIN_LALPULSAR_VERSION@~),
python-ligo-gracedb,
python-matplotlib (>= 1.2.0),
python-numpy (>= 1.7),
python-numpy (>= @MIN_NUMPY_VERSION@),
python-scipy (>= 0.8),
python-six,
lalinference (= ${binary:Version})
......@@ -173,7 +173,7 @@ Depends:
python3-lalpulsar (>= @MIN_LALPULSAR_VERSION@~),
python3-ligo-gracedb,
python3-matplotlib (>= 1.2.0),
python3-numpy (>= 1.7),
python3-numpy (>= @MIN_NUMPY_VERSION@),
python3-scipy (>= 0.8),
python3-six,
lalinference (= ${binary:Version})
......
......@@ -39,7 +39,7 @@ BuildRequires: openmpi-devel
BuildRequires: pkgconfig >= 0.18.0
# swig
BuildRequires: swig >= 3.0.9
BuildRequires: swig >= @MIN_SWIG_VERSION@
# python2
BuildRequires: python2-rpm-macros
......@@ -59,7 +59,7 @@ BuildRequires: python2-lalinspiral >= @MIN_LALINSPIRAL_VERSION@
BuildRequires: python2-lalpulsar >= @MIN_LALPULSAR_VERSION@
BuildRequires: python2-matplotlib >= 1.2.0
BuildRequires: python2-mock
BuildRequires: python2-numpy >= 1.7
BuildRequires: python2-numpy >= @MIN_NUMPY_VERSION@
BuildRequires: python-pathlib
BuildRequires: pytest
BuildRequires: python2-scipy >= 0.9.0
......@@ -83,7 +83,7 @@ BuildRequires: python%{python3_pkgversion}-lalburst >= @MIN_LALBURST_VERSION@
BuildRequires: python%{python3_pkgversion}-lalinspiral >= @MIN_LALINSPIRAL_VERSION@
BuildRequires: python%{python3_pkgversion}-lalpulsar >= @MIN_LALPULSAR_VERSION@
BuildRequires: python%{python3_pkgversion}-matplotlib >= 1.2.0
BuildRequires: python%{python3_pkgversion}-numpy >= 1.7
BuildRequires: python%{python3_pkgversion}-numpy >= @MIN_NUMPY_VERSION@
BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-scipy >= 0.9.0
......@@ -154,7 +154,7 @@ Requires: python2-lalinspiral >= @MIN_LALINSPIRAL_VERSION@
Requires: python2-lalpulsar >= @MIN_LALPULSAR_VERSION@
Requires: python2-ligo-gracedb
Requires: python2-matplotlib >= 1.2.0
Requires: python2-numpy >= 1.7
Requires: python2-numpy >= @MIN_NUMPY_VERSION@
Requires: python2-scipy >= 0.8
Requires: python2-six
Provides: %{name}-python = %{version}-%{release}
......@@ -184,7 +184,7 @@ Requires: python%{python3_pkgversion}-lalinspiral >= @MIN_LALINSPIRAL_VERSION@
Requires: python%{python3_pkgversion}-lalpulsar >= @MIN_LALPULSAR_VERSION@
Requires: python%{python3_pkgversion}-ligo-gracedb
Requires: python%{python3_pkgversion}-matplotlib >= 1.2.0
Requires: python%{python3_pkgversion}-numpy >= 1.7
Requires: python%{python3_pkgversion}-numpy >= @MIN_NUMPY_VERSION@
Requires: python%{python3_pkgversion}-scipy >= 0.8
Requires: python%{python3_pkgversion}-six
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
......
......@@ -14,7 +14,8 @@
{% set lalmetaio_version = "@MIN_LALMETAIO_VERSION@a0" %}
{% set lalsimulation_version = "@MIN_LALSIMULATION_VERSION@a0" %}
{% set lalburst_version = "@MIN_LALBURST_VERSION@a0" %}
{% set swig_version = "3.0.9" %}
{% set swig_version = "@MIN_SWIG_VERSION@" %}
{% set numpy_version = "@MIN_NUMPY_VERSION@" %}
package:
name: {{ name }}
......