Ask Your Question
0

Avoid recompilation of .spyx file

asked 2018-03-09 11:43:39 -0500

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 04:12:17 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2018-03-10 04:13:00 -0500

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 11:43:39 -0500

Seen: 36 times

Last updated: Mar 10