Skip to content

Instantly share code, notes, and snippets.

@snorfalorpagus
Last active February 10, 2016 21:37
Show Gist options
  • Save snorfalorpagus/a96a23ec12f76469c7fb to your computer and use it in GitHub Desktop.
Save snorfalorpagus/a96a23ec12f76469c7fb to your computer and use it in GitHub Desktop.
Cython hello world
def say_hello_to(name):
print("Hello %s!" % name)
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,
)
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