Ask Your Question
0

Can I copy sage library to my program folder and..

asked 2011-10-16 13:24:26 +0200

teepan123 gravatar image

I build program.py that must use some math function ie. IntegerModRing,.. and i don't want to use "from sage.all import *" cause it will run sage first to import library

Can I copy sage library to my program folder and just use "from path/to/myprogram.py import *" or it have another way

ps. Reason i don't want to run sage is i want to create program.py to pure program that use/import sage-lib not program that must install/run sage first before use.

thank you very much

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-10-16 15:16:14 +0200

Mike Hansen gravatar image

No, you can't just copy the Sage (Python) library to another folder and expect things to work. Sage comes with a bunch of C libraries and external programs that it needs to work. Basically you'd need to redistribute Sage in order for program.py to properly run.

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

Stats

Asked: 2011-10-16 13:24:26 +0200

Seen: 177 times

Last updated: Oct 16 '11