Complex mode with linux packages

When working with downloaded linux packages and running from the command line is it possible for this to work:

python complex_fenics.py

and

python scalar_feinics.py

That is by setting environment variables, passing something to python or (preferably) including something in the python script. The current fenics documentation on the issue seems to refer to docker and conda approaches but not a general one.

Apologies for bringing the subject up yet again and doubly so if I have missed something in the documentation.

Apologies are due. Setting the petsc dir and arch variables works. Don’t know what I did wrong first time. Might be worth adding a note in the documentation for those not wanting to use docker, conda, and the like.