Skip to content
Snippets Groups Projects
Commit ce9442cc authored by David Rafferty's avatar David Rafferty
Browse files

Adjust astropy dependency depending on Python version (issue #12)

parent 4821ce84
No related branches found
No related tags found
No related merge requests found
from __future__ import print_function
from setuptools import setup, Command
import os
import sys
import lsmtool._version
......@@ -24,6 +25,11 @@ class PyTest(Command):
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
# Handle Python 3-only dependencies
if sys.version_info < (3, 0):
reqlist = ['numpy','astropy >= 0.4, <3.0']
else:
reqlist = ['numpy','astropy >= 0.4']
setup(
name='lsmtool',
......@@ -43,7 +49,7 @@ setup(
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
install_requires=['numpy','astropy >= 0.4'],
install_requires=reqlist,
scripts=['bin/lsmtool'],
packages=['lsmtool','lsmtool.operations'],
setup_requires=['pytest-runner'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment