meta.yaml 2.43 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# pymagglobal
# pymagglobal is a python interface for global geomagnetic field models.
#
# SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences, Germany (https://www.gfz-potsdam.de/)
#
# SPDX-License-Identifier: CC0-1.0
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This Program was developed within the context of the following
# publicly funded projects or measures:
# - DFG (German Research Foundation), grant 388291411
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, Version 3 or later.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You can find a copy of the license in the LICENSES folder.
# If not, see <http://www.gnu.org/licenses/>.
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78

package:
  name: pyfield
  version: 0.1.3i  # Does not math the tarball's version
  # FIXME "0.1.2 interim-2" is invalid as a version string
  # TODO Use templating with jinja to grab the version number e.g.
  #version: {{ load_setup_py_data().version }} for the latest version
  # or as an alternative for specific version
  #{% set version = "0.1.3i" %}
  #version: {{ version }}
  # and also use it for the download
  #url: .../fieldtools-{{ version }}.tar.gz


source:
  # Get a tarball from GFZ data services
  url: ftp://datapub.gfz-potsdam.de/download/10.5880.FIDGEO.2019.033/fieldtools-i2.tar.gz
  sha256: b297d853f30abdca968af2e3f52a5f62f0991485b23590897b7149c7171f3127

build:
  # Not quite sure about $PYTHON; Docs are just using bare 'python'
  script:
    - export CPPFLAGS='-Wno-deprecated'
    - $PYTHON setup.py build
    - $PYTHON setup.py install

requirements:
  build:
    - {{ compiler('cxx') }}>=9.3  # XXX Versioning scheme only compatible with GCC
    - swig
    - numpy  # setup.py relies on numpy
    - pkg-config
    - eigen

  host:
    - python
    - setuptools
    - numpy
    - eigen  # Not sure if required

  run:
    - python
    - numpy
    - eigen  # Not sure if required

test:
  commands:
    - $PYTHON -c 'import pyfield;     import doctest; doctest.testmod(pyfield)'
    - $PYTHON -c 'import pyfieldcore; import doctest; doctest.testmod(pyfieldcore)'
  imports:
    - pyfield

about:
    license: GPLv3
    license_file: LICENSE