Skip to content

Instantly share code, notes, and snippets.

@disconnect3d
Created May 29, 2018 20:53
Show Gist options
  • Save disconnect3d/92c807d812fd3236b0bf38cb1d59f311 to your computer and use it in GitHub Desktop.
Save disconnect3d/92c807d812fd3236b0bf38cb1d59f311 to your computer and use it in GitHub Desktop.
py3 c module distutils builder
from distutils.core import setup, Extension
mod = Extension('my_types', sources=['my_types.c'])
setup(
name='PackageName',
version='1.0',
description='This is a demo package',
ext_modules=[mod]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment