change scons/templates/trusty_options.py

Asked by jamespaul on 2019-03-19

Hi,

I want to change umfpack = in trusty_options.py.

I installed escript by 'sudo apt install python-escript'.Then I can't find trusty_options.py.

I find it in python-escript_5.3.tar.gz.

So,how can I install escript and could let me to change scons/templates/trusty_options.py?

Thanks

James

Question information

Language:
English Edit question
Status:
Solved
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Solved by:
jamespaul
Solved:
2019-03-20
Last query:
2019-03-20
Last reply:
2019-03-19
Adam Ellery (aellery) said : #1

Hi James,

There are several different ways to install escript on your machine. There are precompiled binaries in the debian and ubuntu repositories which is what is installed when you run the command 'sudo apt install python-escript'. Unfortunatley, as these binaries have already been compiled you cannot modify them. If you would like to install a customised version of escript on your machine then you will need to compile the program from scratch.

To do this, you will need to download and uncompress the tarball "python-escript_5.3.tar.gz" on your drive somewhere. Then, as a preliminary step, you will need to install the various dependencies that escript uses from your repository. If you like, I can tell you which packages you will specifically need to install for your linux distribution (the packages required by the more common distributions are covered in the install guide pdf). Finally, once that has been done, you can compile escript by running:

scons options_file=scons/templates/trusty_options.py

in the escript folder. Once compiled, you can run escript by typing

bin/run-escript

- Adam

jamespaul (jamespauljames) said : #2

Thank you Adam for your detailed teaching.
Thank you so much!It really helps me.

I have run some examples successfully.