Ask Your Question
0

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

asked 13 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 13 years ago

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.

Preview: (hide)
link

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: 13 years ago

Seen: 267 times

Last updated: Oct 16 '11