Verified Commit eda12ee3 authored by Adel Kara Slimane's avatar Adel Kara Slimane
Browse files

Fix config files for proper pip install

parent 0b916123
[build-system]
# Put only the dependencies that are needed for 'setup.py' to run, i.e. at least the imported modules.
# kwant is required in this list because otherwise cythonize() returns errors.
requires = ["setuptools>=42",
"wheel",
"setuptools_scm[toml]>=3.4",
"cython>=0.21.1",
"numpy>=1.8.2",
"tinyarray",
"scipy",
"kwant>=1.4,<2.0",
"mpi4py>=2.0",
"tkwant"]
"kwant"]
[tool.setuptools_scm]
\ No newline at end of file
#!/usr/bin/env python3
from setuptools import setup
from Cython.Build import cythonize
from setuptools_scm import get_version
......@@ -6,13 +8,10 @@ def readme():
with open('README.rst') as f:
return f.read()
requirements = (
"cython>=0.21.1",
requirements = (
"numpy>=1.8.2",
"tinyarray",
"scipy",
"tinyarray",
"kwant>=1.4,<2.0",
"mpi4py>=2.0",
"tkwant"
)
......@@ -24,7 +23,7 @@ setup(name='tkwantoperator',
url='https://gitlab.kwant-project.org/kwant/tkwantoperator',
author='tkwantoperator authors',
author_email='tkwantoperator-authors@kwant-project.org',
ext_modules = cythonize("tkwantoperator/energy.pyx"),
ext_modules = cythonize("tkwantoperator/energy.pyx", language_level=3),
license='BSD',
packages=['tkwantoperator'],
install_requires=requirements,
......
Supports Markdown
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