Skip to content

Commit

Permalink
setup: use setuptools if available and use install_requires
Browse files Browse the repository at this point in the history
fixes #59
  • Loading branch information
andrenarchy committed Jun 6, 2017
1 parent 0f69a82 commit 36e40e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion krypy/__init__.py
@@ -1,3 +1,3 @@
from . import linsys, deflation, recycling, utils
__all__ = ['linsys', 'deflation', 'recycling', 'utils']
__version__ = '2.1.5'
__version__ = '2.1.6'
14 changes: 9 additions & 5 deletions setup.py
@@ -1,8 +1,14 @@
# -*- coding: utf-8 -*-
import os
from distutils.core import setup
import codecs

# Use setuptools for these commands (they don't work well or at all
# with distutils). For normal builds use distutils.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup


# shamelessly copied from VoroPy
def read(fname):
Expand All @@ -15,17 +21,15 @@ def read(fname):
content = ''
return content

from krypy import __version__

setup(name='krypy',
packages=['krypy', 'krypy.recycling'],
version=__version__,
version='2.1.6',
description='Krylov subspace methods for linear systems',
long_description=read('README.rst'),
author='André Gaul',
author_email='gaul@web-yard.de',
url='https://github.com/andrenarchy/krypy',
requires=['numpy (>=1.7)', 'scipy (>=0.13)'],
install_requires=['numpy (>=1.7)', 'scipy (>=0.13)'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
Expand Down

0 comments on commit 36e40e1

Please sign in to comment.