root / Ising / Cython / setup.py @ 39
Historique | Voir | Annoter | Télécharger (383 octet)
| 1 |
# http://docs.cython.org/src/userguide/tutorial.html
|
|---|---|
| 2 |
|
| 3 |
from distutils.core import setup |
| 4 |
from distutils.extension import Extension |
| 5 |
from Cython.Distutils import build_ext |
| 6 |
|
| 7 |
setup( |
| 8 |
cmdclass = {'build_ext': build_ext},
|
| 9 |
ext_modules = [Extension("Metropolis", ["Metropolis.pyx"], |
| 10 |
extra_compile_args=["-O3",])]
|
| 11 |
) |
| 12 |
|
| 13 |
# To compile
|
| 14 |
# python setup.py build_ext --inplace
|