-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #444 from gillins/add_rios
WIP: added RIOS
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |