Re: ReportLab 3.x packaging and deployment

Andy Robinson <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <CABjtAps46BT0k06=+GkRH6DDbWJXJe0rfh+z7THRurwJbOJB3A@mail.gmail.com>
On 14 January 2014 11:00, Marius Gedminas <[email protected]> wrote:
> It would be awesome if I could sudo apt-get install python-reportlab and
> then somehow make it available in selected virtualenvs, but that's a
> discussion for another list.

Dumb questions but can't you...

1. sudo apt-get install python-reportlab
2. create a virtualenv with no site packages
3. make a symlink from the venv's site-packages to the system reportlab?

I concluded long ago that pip can't do everything.  All of our web
projects (and we have a LOT) have a shell script at the top level to
build/rebuild the environment.   So we can check if a symlink exists
and create one if it's missing, and do other "procedural" stuff.

A requirements.txt which specifies all dependencies is a wonderful
thing to have anyway.  And pip is happy enough for pure when you add a
couple more pure Python packages to tour requirements in an existing
project overnight.  But it needs a lot of 'nursing through'.   Right
now I'm working on someone else's financial app needing matplotlib,
scipy (hence fortran), tables (hence HDF5 which absolutely demands a
local source build inside the venv) etc etc.

- Andy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.