summaryrefslogtreecommitdiff
path: root/jplephem
diff options
context:
space:
mode:
authorMatt Rendina <rendinam@users.noreply.github.com>2019-03-11 15:34:13 -0400
committerGitHub <noreply@github.com>2019-03-11 15:34:13 -0400
commit3e5ec3fd71b29e5a8aa3a8119977d19bc3376a58 (patch)
tree096db474e0b6a29d9d7c38ac43eaae904eeaa840 /jplephem
parent55a936e0fd218943f4778465cbcc50dadeb6ec88 (diff)
downloadastroconda-contrib-3e5ec3fd71b29e5a8aa3a8119977d19bc3376a58.tar.gz
Add jplephem (#488)
Diffstat (limited to 'jplephem')
-rw-r--r--jplephem/0001_use-setuptools.patch14
-rw-r--r--jplephem/bld.bat1
-rw-r--r--jplephem/build.sh1
-rw-r--r--jplephem/meta.yaml34
4 files changed, 50 insertions, 0 deletions
diff --git a/jplephem/0001_use-setuptools.patch b/jplephem/0001_use-setuptools.patch
new file mode 100644
index 0000000..23f258d
--- /dev/null
+++ b/jplephem/0001_use-setuptools.patch
@@ -0,0 +1,14 @@
+diff --git a/setup.py b/setup.py
+index 0b20692..954bf21 100644
+--- setup.py
++++ setup.py
+@@ -1,8 +1,4 @@
+-from distutils.core import setup
+-
+-# Fake the presence of numpy so import can succeed.
+-import sys
+-sys.modules['numpy'] = sys.modules['sys']
++from setuptools import setup
+
+ import jplephem
+ description, long_description = jplephem.__doc__.split('\n', 1)
diff --git a/jplephem/bld.bat b/jplephem/bld.bat
new file mode 100644
index 0000000..39b5e1f
--- /dev/null
+++ b/jplephem/bld.bat
@@ -0,0 +1 @@
+%PYTHON% setup.py install
diff --git a/jplephem/build.sh b/jplephem/build.sh
new file mode 100644
index 0000000..5a5aeeb
--- /dev/null
+++ b/jplephem/build.sh
@@ -0,0 +1 @@
+$PYTHON setup.py install
diff --git a/jplephem/meta.yaml b/jplephem/meta.yaml
new file mode 100644
index 0000000..a551e5a
--- /dev/null
+++ b/jplephem/meta.yaml
@@ -0,0 +1,34 @@
+{% set name = 'jplephem' %}
+{% set version = '2.9' %}
+{% set number = '0' %}
+about:
+ home: https://github.com/brandon-rhodes/python-{{ name }}
+ license: MIT
+ summary: "Python version of NASA DE4xx ephemerides, the basis for the Astronomical Alamanac"
+
+build:
+ number: {{ number }}
+
+package:
+ name: {{ name }}
+ version: {{ version }}
+
+requirements:
+ build:
+ - setuptools
+ - numpy {{ numpy }}
+ - python {{ python }}
+
+ run:
+ - numpy
+ - python
+
+source:
+ git_url: https://github.com/brandon-rhodes/python-{{ name }}.git
+ patches:
+ - 0001_use-setuptools.patch
+
+test:
+ imports:
+ - jplephem
+ - jplephem.spk