Namespace and packaging

View: New views
2 Messages — Rating Filter:   Alert me  

Namespace and packaging

by Jérôme Schneider :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm trying to package a python module which use a namespace but it
doesn't work and I don't know why.

I took python-pastedeploy as example because it's the same type of
package. But with my package after an installation, Python doesn't find
my module :
>>> import aditam.core
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named core

If someone could take a look to the sources :
http://dl.share-spirit.net/aditam.core-0.1.tar.gz

Thanks

PS : If I run : 'python setup.py install' every thing works well.

- --
Jérôme Schneider
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhL128ACgkQi8L9izIcxiHsxgCgn7lujxd6PJ6r3gJs0uvF6Tql
f7IAn0uDcSYsvRnz4q+ZGQ9DwuRCxf+P
=HTk1
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-python-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Namespace and packaging

by Piotr Ożarowski-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

[Jerome Schneider, 2008-06-08]
> I took python-pastedeploy as example because it's the same type Of

wow, my package taken as a reference ;-)

> package. But with my package after an installation, Python doesn't find
> my module :
> >>> import aditam.core
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named core

in debian/rules, add after line 25:

        rm -f debian/${p_name}/usr/lib/python$*/site-packages/aditam.core-*.pth

and everything will work fine (package still needs some work, though)

 
> If someone could take a look to the sources :
> http://dl.share-spirit.net/aditam.core-0.1.tar.gz

please point us to .dsc file next time, it's easier to download all the
files with dget.

--
-=[     Piotr Ożarowski     ]=-
-=[ http://www.ozarowski.pl ]=-


attachment0 (204 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price!