Re: [cython-users] First Cython ModuleI

18 views
Skip to first unread message

Robert Bradshaw

unread,
May 19, 2013, 2:47:16 AM5/19/13
to cython...@googlegroups.com
Are you sure you installed Cython? In any case, the reccommended way
to do things is to use cythonize(), see
http://docs.cython.org/src/reference/compilation.html

On Sat, May 18, 2013 at 5:05 AM, Aidin Hasanzadeh
<aidinha...@gmail.com> wrote:
> Hey,
>
> I am new with Cython and starting my first module. I am using
> eclipse/Ubunty. I installed cython and tried to implement the very first
> example, Hello world.
>
> http://docs.cython.org/src/userguide/tutorial.html
>
> I made the setup file, but importing Cython.Distutils could not be resolved.
>
> from distutils.core import setup
> from distutils.extension import Extension
> from Cython.Distutils import build_ext
>
> setup(
> cmdclass = {'build_ext': build_ext},
> ext_modules = [Extension("helloworld", ["helloworld.pyx"])])
>
>
>
> Thanks for any help
> Aidin
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "cython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cython-users...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Chris Barker - NOAA Federal

unread,
May 20, 2013, 11:52:52 AM5/20/13
to cython...@googlegroups.com
On Sat, May 18, 2013 at 11:47 PM, Robert Bradshaw <robe...@gmail.com> wrote:
> Are you sure you installed Cython?

and are running the same python with Eclipse that you installed cython into?

-CHB
--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris....@noaa.gov
Reply all
Reply to author
Forward
0 new messages