-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
24 lines (21 loc) · 859 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python
from distutils.core import setup
from Cython.Build import cythonize
from distutils.extension import Extension
import numpy
extensions = [Extension("einsum2.parallel_matmul",
sources=["einsum2/parallel_matmul.pyx"],
extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp'],
include_dirs=[numpy.get_include()])]
setup(name='einsum2',
version='0.1',
description='Parallel einsum products of 2 tensors',
author='Jack Kamm',
author_email='[email protected]',
packages=['einsum2'],
install_requires=['numpy>=1.9.0', 'autograd>=1.0.4'],
keywords=['Einstein summation', 'linear algebra', 'tensors'],
url='https://github.com/jackkamm/einsum2',
ext_modules=cythonize(extensions),
)