meta.yaml 1.05 KB
Newer Older
1

Stefan Mauerberger's avatar
Stefan Mauerberger committed
2
3
package:
  name: pyfield
Stefan Mauerberger's avatar
Stefan Mauerberger committed
4
  version: "0.1.3i"
Stefan Mauerberger's avatar
Stefan Mauerberger committed
5
6

source:
7
  # Get a tarball from GFZ data services
Stefan Mauerberger's avatar
Stefan Mauerberger committed
8
9
  url: ftp://datapub.gfz-potsdam.de/download/10.5880.FIDGEO.2019.033/fieldtools-i2.tar.gz
  sha256: b297d853f30abdca968af2e3f52a5f62f0991485b23590897b7149c7171f3127
Stefan Mauerberger's avatar
Stefan Mauerberger committed
10
11
12

build:
  # Not quite sure about $PYTHON; Docs are just using bare 'python'
Stefan Mauerberger's avatar
Stefan Mauerberger committed
13
14
15
16
  script:
    - export CPPFLAGS='-Wno-deprecated'
    - $PYTHON setup.py build
    - $PYTHON setup.py install
Stefan Mauerberger's avatar
Stefan Mauerberger committed
17
18
19

requirements:
  build:
Stefan Mauerberger's avatar
Stefan Mauerberger committed
20
    - {{ compiler('cxx') }}>=9.3  # XXX Versioning scheme only compatible with GCC
Stefan Mauerberger's avatar
Stefan Mauerberger committed
21
    - swig
22
    - numpy  # setup.py relies on numpy
Stefan Mauerberger's avatar
Stefan Mauerberger committed
23
    - pkg-config  # setup.py relies on pkg-config
Stefan Mauerberger's avatar
Stefan Mauerberger committed
24
25
26
27
28
29
    - eigen

  host:
    - python
    - setuptools
    - numpy
Stefan Mauerberger's avatar
Stefan Mauerberger committed
30
31
    - pkg-config  # setup.py relies on pkg-config
    - eigen
Stefan Mauerberger's avatar
Stefan Mauerberger committed
32
33
34
35
36
37

  run:
    - python
    - numpy

test:
38
  commands:
39
40
    - $PYTHON -c 'import pyfield;     import doctest; doctest.testmod(pyfield)'
    - $PYTHON -c 'import pyfieldcore; import doctest; doctest.testmod(pyfieldcore)'
Stefan Mauerberger's avatar
Stefan Mauerberger committed
41
42
43
  imports:
    - pyfield

44
about:
45
    license: GPLv3
46
    license_file: LICENSE