From e817b67865a7a4ede7ee267899b1937a565ed87d Mon Sep 17 00:00:00 2001
From: James Harle <jdha@noc.ac.uk>
Date: Tue, 23 Apr 2019 22:15:06 +0100
Subject: [PATCH] Adding conda recipe build directory

---
 conda-recipe/bld.bat   |  3 +++
 conda-recipe/build.sh  |  3 +++
 conda-recipe/meta.yaml | 45 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)
 create mode 100644 conda-recipe/bld.bat
 create mode 100644 conda-recipe/build.sh
 create mode 100644 conda-recipe/meta.yaml

diff --git a/conda-recipe/bld.bat b/conda-recipe/bld.bat
new file mode 100644
index 0000000..4d52bfd
--- /dev/null
+++ b/conda-recipe/bld.bat
@@ -0,0 +1,3 @@
+xcopy /e "%RECIPE_DIR%\.." "%SRC_DIR%"
+%PYTHON% setup.py install
+if errorlevel 1 exit 1
\ No newline at end of file
diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh
new file mode 100644
index 0000000..70f66a1
--- /dev/null
+++ b/conda-recipe/build.sh
@@ -0,0 +1,3 @@
+cp -r ${RECIPE_DIR}/.. ${SRC_DIR}
+cd ${SRC_DIR}
+$PYTHON setup.py install
diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml
new file mode 100644
index 0000000..292ea79
--- /dev/null
+++ b/conda-recipe/meta.yaml
@@ -0,0 +1,45 @@
+package:
+  name: pynemo
+  version: "0.1.0"
+#source:
+#  path: ../
+#  git_url: https://github.com/jdha/PyNEMO
+
+build:
+  preserve_egg_dir: yes
+#  number: 0
+  
+requirements:
+  build:
+    - python
+    - numpy
+    - setuptools
+    - scipy
+    - netcdf4 >=1.1.9
+    - matplotlib
+    - basemap
+    - thredds_crawler
+    - seawater
+
+  run:
+    - python
+    - numpy
+    - scipy
+    - netcdf4 >=1.1.9
+    - matplotlib
+    - basemap
+    - thredds_crawler
+    - seawater
+
+	
+#test:
+#  files:
+#    - ../data/grid_C/NNA_R12_bathy_meter_bench.nc
+#  requires:
+#    - nose
+#  imports:
+#    - nosetests
+about:
+  home: https://github.com/jdha/PyNEMO 
+  license: GPL v3
+  summary: 'NEMO Regional Configuration Toolbox'
-- 
GitLab