This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Is there a documented method to obtain a statically linked binary from FEniCS python code?

0 votes

Hi everyone,

I have just started using FEniCS (and python), and I'm having lot's of fun with it.

I was wondering if there is a method where I can have the python code I've written in statically linked binary form, so that I don't have to spend days trying to install FEniCS on various computing centers with various security restrictions preventing an easy install.

I can also transfer my small code to C++ if need arises.

asked Aug 27, 2014 by obm FEniCS Novice (680 points)

1 Answer

+1 vote
 
Best answer

Maybe you should check out https://bitbucket.org/garth-wells/fenics-virtual which encapsulates FEniCS in a virtual environment, and is very easy to set up.

answered Aug 29, 2014 by chris_richardson FEniCS Expert (31,740 points)
selected Sep 3, 2014 by obm

Thank you for this nice solution, but I would like to avoid installing and running VM encapsulated solutions in a scientific HPC environment as an end user. This will be problematic to integrate with the batch system, and will be hard to monitor by administrators. Especially in "high security" computers.

Unfortunately, there's not much you can do besides recompiling on each system.
You will find different compilers, MPI implementations, linear algebra libraries...

...