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

How to expose packages built with this tool on PYTHONPATH

ericriff opened this issue · comments

Hi Team,

I've recently started looking into this tool. It is really interesting. I've read the docs but some points are still unclear to me.

I've used cookiecutter with the debianized-pypi-mold template to repackage numpy as a deb package.
Once I got the deb package, I installed it. It ended up on the /opt/venvs/numpy folder as the docs say it would. But this is not one of the default paths where python looks for packages (I'm guessing this is by design).
I'm wondering how are we supposed to expose these packages to python. Are we expected to set PYTHONPATH accordingly? Or source the activate sctipts from the venvs? If we're supposed to do the later, would it work if I install multiple python packages this way?
Maybe use one of those rules that create a simlink to expose packaged executables in PATH?
Looking for some guidance here.

Thanks for the amazing tool.

Eric.

I see. Thanks!