spotify / dh-virtualenv

Python virtualenvs in Debian packages

Home Page:http://dh-virtualenv.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting my project entry points on path using dh_virtualenv

Karhide opened this issue · comments

Hi there,

So let’s say I have a python project that has some entry points defined in setup.py. Normally during installation these would end up on the path, but obviously if we are installing inside a virtualenv we would have to activate it first, which is no problem normally but if you are shipping software (my reason for debianising it in the first place) it would be normal for a user to be able to use it globally.

I was just wondering, therefore, what would be the best way to make dh_virtualenv built packages accessible. Simplest way I can imagine is just a postinst script that moves the relevant entry points to somewhere on the path. But you guys must have encountered this and have a preferred way of doing it, so here I am!

Thanks.

Perfect!

@nailor working on jhermann#1 now, since I shuffle things around, please do not touch doc/ this weekend. Also, I took the freedom of adding a logo. ☺

Can be closed → #237