-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (30 loc) · 879 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
25
26
27
28
29
30
31
32
33
34
from setuptools.command.build_ext import build_ext
from setuptools import setup, Extension
ext = Extension(
'mamonca',
sources=["mamonca/mc.pyx"],
language="c++",
extra_compile_args=['-std=c++11'],
)
with open('README.md') as readme_file:
readme = readme_file.read()
setup(
name='mamonca',
version='0.0.8',
description='mamonca - interactive Magnetic Monte Carlo code',
long_description=readme,
long_description_content_type='text/markdown',
url='https://github.com/samwaseda/mamonca',
author='Sam Waseda',
author_email='[email protected]',
license='BSD',
cmdclass={"build_ext": build_ext},
ext_modules=[ext],
options={'build': {'build_lib': 'mamonca'}},
setup_requires=[
# Setuptools 18.0 properly handles Cython extensions.
'setuptools>=18.0',
'cython',
'numpy',
],
)