Re: ReportLab 3.x packaging and deployment

Peter Cock <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <CAKVJ-_41HXov07tJMO68ga+1=p8ycJWSMiTu4txejW10dJoNZw@mail.gmail.com>
On Tue, Jan 14, 2014 at 11:19 AM, Andy Robinson <[email protected]> wrote:
> 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?

Probably not advisable, but I have done similar trickery in the past.
It can be made to work, however, with any C extensions involved
(as in ReportLab) this can only work if the virtualenv is using the
same version of Python as the system python.

Peter
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.