[Build-common-hackers] Bug#628110: Bug#628110: cdbs: Wrong install dir for python modules

Daniel Dehennin daniel.dehennin at baby-gnu.org
Fri Jun 17 10:48:32 UTC 2011


> I see no problem with CDBS, then, and thus close this as a non-bug.

Hello,

I'm trying to provide a python module for an application, the
application install some modules in
/usr/lib/python2.6/dist-packages/zephir/monitor/agents/

Using CDBS with pycentral system, my module land in
/usr/lib/python2.6/site-packages/zephir/monitor/agents/ and is not
usable by the application[1]:

#v+
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from zephir.monitor.agents import mymodule
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name mymodule
#v-

Regards.

Footnotes: 
[1]  As I'm more confident with perl, I thought that 
     "from zephir.monitor.agents import mymodule" will find mymodule as
     /usr/lib/python2.6/ is in sys.path

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20110617/8d1d957f/attachment-0001.pgp>


More information about the Build-common-hackers mailing list