JMH wrote:
Hi,
I've got the following problem.
I am building an external library which I want to add to Sage (via some
python bindings).
The usual way is to either create an spkg (Sage package), and ship that,
perhaps along with additional patches to the Sage library (which must
not get modified from within an spkg-install script) and/or other Sage
repos, or modify (just) the Sage library, by providing a patch to it.
See the Sage Developer's Guide [1] for details, perhaps especially [2]
(for creating spkgs).
I put the binaries into the "${SAGE_LOCAL}" chain.
In order to use that library, some environment variables need to be set
and a "setup" shell script (bash) needs to be sourced.
So, I added some lines in the end of the standard "spkg/bin/sage-env"
script.
This works well, except that when I try to create a new "binary
distribution" ("./sage --bdist ..."), the "sage-env" script in that new
tarball is the "original" one, without my modifications.
Could you, please, tell me what do I need to do in order to get my
modifications automatically included?
Presumably you haven't committed the changes. ('sage-env' is part of
the "Sage root" (aka "SAGE_ROOT") repository, located in $SAGE_ROOT,
i.e., Sage's top-level directory.)
Also, if you do not think that I should modify the standard "sage-env"
script, how can I "register" my library in a different way?
Before I source my "setup" shell script (bash), I need all Sage related
variables to be set, so the end of the standard "sage-env" script seemed
a good idea to me (I need to add some entries into "PATH",
"LD_LIBRARY_PATH", "PYTHONPATH", ...).
See above.
-leif
[1] http://sagemath.org/doc/developer/
[2] http://sagemath.org/doc/developer/producing_spkgs.html
--
() The ASCII Ribbon Campaign
/\ Help Cure HTML E-Mail
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.