Hi Marco, One option is to install FEniCS within the virtualenv. I have done this on OS X. The trick is to set the -DCMAKE_INSTALL_PREFIX during cmake configuration to the value of the bash variable $VIRTUAL_ENV. It all 'just worked' for me. Then pip install the other components, maybe with the git option if you want to install from a particular commit, see the pip manual.
There is an option with virtualenvwrapper called 'add2virtualenv' which allows you to import site-packages... I'm not convinced this will work with the binary portion though. pip is not so good with complex binary/python packages like FEniCS. Jack ----- Dr. Jack S. Hale Marie Skłodowska-Curie Postdoctoral Fellow University of Luxembourg Campus Kirchberg G005 Phone +352 44 66 44 5236 [email protected] Latest publications and conferences: http://goo.gl/rNiISG ORCID: http://orcid.org/0000-0001-7216-861X Google Scholar: http://scholar.google.com/citations?user=Fx9lQ7MAAAAJ&hl=de On 21 October 2014 12:00, <[email protected]> wrote: > Send fenics mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://fenicsproject.org/mailman/listinfo/fenics > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of fenics digest..." > > > Today's Topics: > > 1. FEniCS and virtualenv (Marco Zocca - 3ME) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 20 Oct 2014 15:46:31 +0000 > From: Marco Zocca - 3ME <[email protected]> > To: "[email protected]" <[email protected]> > Subject: [FEniCS] FEniCS and virtualenv > Message-ID: > <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > Dear all, > > I have at last a working installation of FEniCS and dolfin-adjoint, and would > like to start using it alongside other python libraries. > > In particular, I was thinking to initialize a virtual environment that > inherits the dolfin libraries (e.g. with virtualenv --extra-search-dir) and > possibly isolated from the system libraries (new virtualenvs are isolated by > default). > > Has anyone some experience or pointers on the matter? I really don't want to > break the dolfin installation and can't trust my global python installation. > > Thank you in advane and kind regards > > Marco Zocca > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://fenicsproject.org/pipermail/fenics/attachments/20141020/396a2fed/attachment-0001.html> > > ------------------------------ > > _______________________________________________ > fenics mailing list > [email protected] > http://fenicsproject.org/mailman/listinfo/fenics > > > End of fenics Digest, Vol 19, Issue 28 > ************************************** _______________________________________________ fenics mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics
