Skip to content

Instantly share code, notes, and snippets.

@caljim
Created September 19, 2012 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caljim/3747693 to your computer and use it in GitHub Desktop.
Save caljim/3747693 to your computer and use it in GitHub Desktop.
Python ext compile example
form distutils.core import setup, Extension
module1 = Extension('foo',
sources = ['foo.c','hash_64a.c'])
setup (name = 'foo',
version = '0.1.3',
description = '',
classifiers=[
"Programming Language :: Python",],
ext_modules = [module1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment