[Python-apps-team] PYTHONPATH in debian/rules

BRAGA, Bruno bruno.braga at gmail.com
Wed Jul 25 09:03:14 UTC 2012


Hi Stefano,

Great. It worked! Thanks a bunch! I forgot the "export" part of it, or it
would've worked from start...

For reference:

------------------------------------------ debian/rules
------------------------------------------
#!/usr/bin/make -f
# -*- makefile -*-

#
# Include access to private module
#
PYTHONPATH := /usr/share/termsaver
export PYTHONPATH

%:
        dh $@ --with=python2

override_dh_auto_install:
        dh_auto_install
--install-lib=/usr/share/termsaver/termsaverlib/plugins
----------------------------------------------------------------------------------------------------------

--
*Braga, Bruno*
www.brunobraga.net
bruno.braga at gmail.com


On Wed, Jul 25, 2012 at 6:39 PM, Stefano Rivera <stefanor at debian.org> wrote:

> Hi BRAGA, (2012.07.25_09:31:47_+0200)
> > To help a bit on the error above, here is my directory structure:
> > termsaver package is a standalone app installed on /usr/share/
> >
> > $ tree /usr/share/termsaver/
> > /usr/share/termsaver/
> > ├── termsaver
> > ├── termsaver-0.1.2.egg-info
> > └── termsaverlib
> >     ├── common.py
> >     ├── constants.py
> >     ├── exception.py
> >     ├── i18n.py
> >     ├── __init__.py
> >     ├── plugins
> >     │   ├── __init__.py
>
> Well, sure, then you need PYTHONPATH=/usr/share/termsaver/
> Otherwise it won't find that.
>
> So, throw an export PYTHONPATH=/usr/share/termsaver into debian/rules?
>
> SR
>
> --
> Stefano Rivera
>   http://tumbleweed.org.za/
>   H: +27 21 461 1230 C: +27 72 419 8559
>
> _______________________________________________
> Python-apps-team mailing list
> Python-apps-team at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-apps-team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20120725/903586a8/attachment-0001.html>


More information about the Python-apps-team mailing list