This isn't a Cython question but a distutils question. In general, it helps
to keep the sources in the same directory structure as the final package.
That would help here, too.
Note that the extension DLL file is *not* package data. It will be
installed as an extension module, and my guess is that you called it
"OpenMS" and not "pyOpenMS.OpenMS".
Stefan
when you specify:
ext_package = "pyOpenMS"
I think you just told distutils to put pyOpenMS.pyd in site-packages.
is pyOpenMS.pyd a package? or is it a module? If it's a module (in the
pyOpenMS package) then you want to specify it in ext_modules. You
haven't given us the definition here, but it might look something like:
ext_modules = [Extension('pyOpenMS.pyOpenMS',
['pyOpenMS.pyx']),
],
By the way this it totally a taste issue, bit I would call the package
"OpenMS", rather than pyOpenMS -- it's a python pacakge after all!
The project itself may be called pyOpenMS in any case -- as I assume
this is a python binding to OpenMS
> Note that the extension DLL file is *not* package data. It will be
> installed as an extension module,
or is the dll a dll that the extension is linked against (the *.pyd is
the extension) in which case, you do need to put it somewhere. Ntoe that
you may have naming issue on other systems -- on *nix shared libs and
python extensions (which are also shared libs) are all called *.so
-Chris
--
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
The distutils SIG has an active mailing list: (it's the first hit on
Google for "distutils mailing list")
http://mail.python.org/mailman/listinfo/distutils-sig
--
Ernesto Posse
Modelling and Analysis in Software Engineering
School of Computing
Queen's University - Kingston, Ontario, Canada
note: this is dangerous -- they really should have different names,
asside from the extension.
There was a bunch of discussion about this on this list a while back,
and while it's appealing to do it this way, trust me when I say: don't
to it.
-Chris