Verified Commit 7c8a9176 authored by Hugo Kerstens's avatar Hugo Kerstens
Browse files

Attempt at pip compatibility

parent b9c08f39
[build-system]
requires = ["setuptools", "wheel", "Cython", "numpy", "scipy"]
\ No newline at end of file
......@@ -3,6 +3,9 @@
'''
from setuptools import setup as setup_stools
from setuptools import find_packages
from Cython.Build import cythonize
import numpy
import sys
if sys.version_info < (3, 5):
......@@ -15,12 +18,6 @@ install_requires = [
'matplotlib',
]
setup_requires = [
'Cython',
'numpy',
'scipy'
]
setup_stools(
name='poisson',
description='Poisson solver using finite volume',
......@@ -31,14 +28,8 @@ setup_stools(
'Programming Language :: Python :: 3.6',],
packages=find_packages('.'),
install_requires=install_requires,
setup_requires=setup_requires
)
from distutils.core import setup as setup_cy
from Cython.Build import cythonize
import numpy
setup_cy(ext_modules = cythonize(['poisson/discrete/_finite_volume.pyx',
ext_modules = cythonize(['poisson/discrete/_finite_volume.pyx',
'poisson/discrete/_discrete_poisson.pyx',
'poisson/discrete/_linear_problem.pyx']),
include_dirs=[numpy.get_include()])
include_dirs=[numpy.get_include()]
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment