Last active
February 10, 2016 21:37
-
-
Save snorfalorpagus/a96a23ec12f76469c7fb to your computer and use it in GitHub Desktop.
Cython hello world
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def say_hello_to(name): | |
print("Hello %s!" % name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from setuptools import setup, Extension | |
from Cython.Build import cythonize | |
ext_modules = [ | |
Extension("hello", ["hello.pyx"]) | |
] | |
setup( | |
name = 'Hello world app', | |
ext_modules = ext_modules, | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hello | |
hello.say_hello_to("Appveyor") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment