Ask Your Question
0

Avoid recompilation of .spyx file

asked 2018-03-09 18:43:39 +0100

watson_ladd gravatar image

I have a script I am running many times with a .spyx file. Unfortunately each compilation creates a large temporary file, and these are eating up my disk quota so it now no longer runs. What do I do to avoid this situation? Ideally I compile once and sage uses that for all executions.

edit retag flag offensive close merge delete

Comments

This is weird. Sage should clean up the previous compilation. Which version are you using?

vdelecroix gravatar imagevdelecroix ( 2018-03-10 11:12:17 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-03-10 11:13:00 +0100

vdelecroix gravatar image

If you want to compile once and for all you need to construct a proper Python module. You would first have to make the .spyx file a .pyx file (that is a Cython file) and write a simple setup.py file. The only difference between .spyx and .pyx is that you have to write the import statements for the various objects you are using. Next, for the setup.py you can have a look at cython compilation.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-03-09 18:43:39 +0100

Seen: 277 times

Last updated: Mar 10 '18