---------------------------------------------------------------------------
DistutilsSetupError Traceback (most recent call last)
<ipython-input-2-1819e7ad45ac> in <module>()
----> 1 get_ipython().run_cell_magic(u'cython', u'-a', u'\ndef foo():\n pass')
/usr/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_cell_magic(self, magic_name, line, cell)
2259 magic_arg_s = self.var_expand(line, stack_depth)
2260 with self.builtin_trap:
-> 2261 result = fn(magic_arg_s, cell)
2262 return result
2263
/usr/local/lib/python2.7/site-packages/Cython/Build/IpythonMagic.pyc in cython(self, line, cell)
/usr/local/lib/python2.7/site-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
/usr/local/lib/python2.7/site-packages/Cython/Build/IpythonMagic.pyc in cython(self, line, cell)
272 build_extension.build_temp = os.path.dirname(pyx_file)
273 build_extension.build_lib = lib_dir
--> 274 build_extension.run()
275 self._code_cache[key] = module_name
276
/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build_ext.pyc in run(self)
335
336 # Now actually compile and link everything.
--> 337 self.build_extensions()
338
339 def check_extensions_list(self, extensions):
/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build_ext.pyc in build_extensions(self)
441 def build_extensions(self):
442 # First, sanity-check the 'extensions' list
--> 443 self.check_extensions_list(self.extensions)
444
445 for ext in self.extensions:
/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build_ext.pyc in check_extensions_list(self, extensions)
358 if not isinstance(ext, tuple) or len(ext) != 2:
359 raise DistutilsSetupError, \
--> 360 ("each element of 'ext_modules' option must be an "
361 "Extension instance or 2-tuple")
362
DistutilsSetupError: each element of 'ext_modules' option must be an Extension instance or 2-tuple