Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78942

Re: virtualenv question: include just a few site packages

Date 2014-10-10 13:17 +0200
From Jean-Michel Pichavant <jeanmichel@sequans.com>
Subject Re: virtualenv question: include just a few site packages
Newsgroups comp.lang.python
Message-ID <mailman.14745.1412939832.18130.python-list@python.org> (permalink)

Show all headers | View raw


----- Original Message -----
> From: "Gelonida N" <gelonida@gmail.com>
> To: python-list@python.org
> Sent: Thursday, 9 October, 2014 5:55:44 PM
> Subject: Re: virtualenv question: include just a few site packages
> > You could build a virtual machine, installing only your VIP
> > modules, and create virtual environment on this virtual machine,
> > using the system site packages.
> >
> 
> Yeah that's an option.
> 
> However I guess in this case it's probably faster to write a script,
> that 'post-processes' the virtualenv and just deletes files /
> symlinks,
> that are not desired. Definitely not elegant, but probably OK. On the
> other hand a VM migfht help finding out which files to keep.
> 

if you have the package somewhere of those modules you'd want to install you can specify local packages in the pip_requirement.txt file:

https://pip.readthedocs.org/en/1.1/requirements.html

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: virtualenv question: include just a few site packages Jean-Michel Pichavant <jeanmichel@sequans.com> - 2014-10-10 13:17 +0200

csiph-web