Re: [sage-devel] Re: How can an spkg extend the interactive Sage environment?

2013-10-01 Thread Bill Janssen
On Monday, September 30, 2013 11:50:36 PM UTC-7, Felix Salfelder wrote:
>
> On Mon, Sep 30, 2013 at 03:51:15PM -0700, Bill Janssen wrote: 
> > > However, I've also got to make sure that the environment variable 
> > > JMODELICA_HOME is set.  Is there some way for an spkg to hook into 
> sage-env 
> > > and extend it? 
>
> > Hello?  Anyone? 
>
> that's pretty easy to do. actually, unhardwiring the parts of sage-env 
> solves a lot more problems. 
>
> it is #15087, and it does no longer merge cleanly, because of some other 
> changes I dont know about. 
>
> have fun. 
> felix 
>

Thanks, Felix. 

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


[sage-devel] Re: How can an spkg extend the interactive Sage environment?

2013-10-01 Thread Bill Janssen
On Tuesday, October 1, 2013 1:39:42 AM UTC-7, Volker Braun wrote:
>
> Just patch the JModelica module to set the path on import. Requiring 
> global variables to point to your home dir is already so much bad practice 
> that I don't want to see the source code.
>
> Well, I hope you won't have to look at it.  Though the practice is quite 
common in the Modelica tool world.  In general, I think lots of software 
solutions built by engineers rather than software people tend to do this, 
because they either don't understand or don't care about the various 
alternatives.

Thanks, I'll do as you suggest. 

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


[sage-devel] Re: How can an spkg extend the interactive Sage environment?

2013-10-01 Thread Volker Braun
Just patch the JModelica module to set the path on import. Requiring global 
variables to point to your home dir is already so much bad practice that I 
don't want to see the source code.



-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sage-devel] Re: How can an spkg extend the interactive Sage environment?

2013-09-30 Thread Felix Salfelder
On Mon, Sep 30, 2013 at 03:51:15PM -0700, Bill Janssen wrote:
> > However, I've also got to make sure that the environment variable 
> > JMODELICA_HOME is set.  Is there some way for an spkg to hook into sage-env 
> > and extend it?

> Hello?  Anyone?

that's pretty easy to do. actually, unhardwiring the parts of sage-env
solves a lot more problems.

it is #15087, and it does no longer merge cleanly, because of some other
changes I dont know about.

have fun.
felix

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


[sage-devel] Re: How can an spkg extend the interactive Sage environment?

2013-09-30 Thread Bill Janssen
Hello?  Anyone?

On Monday, September 23, 2013 2:29:00 PM UTC-7, Bill Janssen wrote:
>
> I'm building JModelica for Sage.  It installs into its own little private 
> directory (I'm using ${SAGE_LOCAL}/JModelica-1.11), including its Python 
> code.  When I fire up the interactive Sage prompt, I'd like it to be able 
> to locate the JModelica Python modules.  To do that, I need to integrate 
> JModelica's Python installation with Sage's.
>
> What's the correct procedure here?  I thought I'd just symlink the 
> directories in ${SAGE_LOCAL}/JModelica-1.11/Python/ to 
> ${SAGE_LOCAL}/lib/python2.7/site-packages/.
>
> However, I've also got to make sure that the environment variable 
> JMODELICA_HOME is set.  Is there some way for an spkg to hook into sage-env 
> and extend it?
>
> Bill
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.