On May 21, 2009, at 9:52 AM, Chris Colbert wrote:
> so, what would the setup script look like for something like this?
>
> if i do:
>
> sources = ['file1.pyx', 'file2.pyx', ... ]
>
> setup(
> cmdclass = {'build_ext': build_ext},
> ext_modules = [Extension("mymodule", sourcefiles,
> include_dirs=include_dirs,
> library_dirs=library_dirs,
> libraries = libraries)])
>
> it fails.
>
> but if i build each module separately, everything works. i.e.:
>
> sources = ['file1.pyx']
>
> setup(
> cmdclass = {'build_ext': build_ext},
> ext_modules = [Extension("mymodule1", sourcefiles,
> include_dirs=include_dirs,
> library_dirs=library_dirs,
> libraries = libraries)])
>
> ^^^repeat the above for each module.
>
>
> What I want to be able to do, is have all of my multiple .pyx
> and .pxd files compiled and built into a single .pyd
>
> Is that possible?
I don't know how it works on Windows, but on linux/OS X Python does a
lookup on modulename.so as part of the import mechanism... Perhaps
some hackery could be done, but it wouldn't work out of the box.
- Robert
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev