Skip to content

Commit

Permalink
Merge pull request #444 from gillins/add_rios
Browse files Browse the repository at this point in the history
WIP: added RIOS
  • Loading branch information
ocefpaf committed Apr 27, 2016
2 parents e16d5b5 + 04a70fe commit 1736b1a
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
37 changes: 37 additions & 0 deletions recipes/rios/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% set version = "1.4.2" %}

package:
name: rios
version: {{ version }}

source:
fn: rios-{{ version }}.tar.gz
url: https://bitbucket.org/chchrsc/rios/downloads/rios-{{ version }}.tar.gz
md5: 6fa3db26d5c9e6c504ff46f66267e39c

build:
number: 0
script: python setup.py install

requirements:
build:
- python
- numpy
- gdal 2.0.2
run:
- python
- numpy
- gdal 2.0.2

test:
imports:
- rios

about:
home: http://rioshome.org/
license: GPLv3
summary: Raster I/O simplification, a set of Python modules built on top of GDAL to simplify processing raster data, including data with Raster Attribute Tables.

extra:
recipe-maintainers:
- gillins
24 changes: 24 additions & 0 deletions recipes/rios/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env python
"""
Main test harness for RIOS.
Should be run as a main program. It then runs a selection
of tests of some capabilities of RIOS.
"""
# Set GDAL_DATA. This is done normally done by the activate script,
# but this doesn't happen in the testing environment
import os
if 'LIBRARY_PREFIX' in os.environ:
# Windows
gdalData = os.path.join(os.environ['LIBRARY_PREFIX'], 'share', 'gdal')
else:
# Linux/OSX
gdalData = os.path.join(os.environ['PREFIX'], 'share', 'gdal')

os.environ['GDAL_DATA'] = gdalData

if __name__ == '__main__':
# this if is important since some of the tests use the multiprocessing module
from rios.riostests import riostestutils
riostestutils.testAll()

0 comments on commit 1736b1a

Please sign in to comment.