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

BRAGA, Bruno bruno.braga at gmail.com
Mon Jul 23 13:59:34 UTC 2012


Hi debian/python gurus,

I am packaging a plugin for another package I have, but it is held
privately, so I need to add the path to it in PYTHONPATH for running
setup.py.

But I couldnt make it work in debian/rules...

Do you know any examples on how I can sort this out?

Basically:

with
$ PYTHONPATH=/usr/share/package python setup.py install --prefix=/usr
this works!

But in debian/rules:

---------------------
#!/usr/bin/make -f
# -*- makefile -*-
PYTHONPATH = /usr/share/package

%:
        dh $@ --with=python2
---------------------

does not work. I also tried:

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

%:
        dh $@ --with=python2

override_dh_install:
        PYTHONPATH=/usr/share/package \
---------------------

does not work either...

Any thoughts?

Thanks,

--
*Braga, Bruno*
www.brunobraga.net
bruno.braga at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20120723/e510c24f/attachment.html>


More information about the Python-apps-team mailing list