Skip to content

Instantly share code, notes, and snippets.

@bayerj
Created May 17, 2011 21:13
Show Gist options
  • Select an option

  • Save bayerj/977414 to your computer and use it in GitHub Desktop.

Select an option

Save bayerj/977414 to your computer and use it in GitHub Desktop.
bayerj@mackiley theanoscan$ hg diff setup.py
diff -r 05a623a43c30 setup.py
--- a/setup.py Mon May 16 19:28:17 2011 -0400
+++ b/setup.py Tue May 17 23:13:19 2011 +0200
@@ -117,8 +117,16 @@
def do_setup():
write_version_py()
+
+ from Cython.Distutils import build_ext
+ from distutils.extension import Extension
+ scan_perform_ext = Extension('scan_perform', ['theano/scan_module/scan_perform.pyx'])
+ exts = [scan_perform_ext]
+
setup(name=NAME,
version=VERSION,
+ ext_modules=exts,
+ cmdclass = {'build_ext': build_ext},
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
classifiers=CLASSIFIERS,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment