#11906: PolyBoRi should obey some standard environment variables
-------------------------------+--------------------------------------------
   Reporter:  AlexanderDreyer  |          Owner:  AlexanderDreyer               
             
       Type:  defect           |         Status:  new                           
             
   Priority:  major            |      Milestone:  sage-4.7.3                    
             
  Component:  algebra          |       Keywords:                                
             
Work_issues:                   |       Upstream:  Not yet reported upstream; 
Will do shortly.
   Reviewer:                   |         Author:                                
             
     Merged:                   |   Dependencies:  #11575                        
             
-------------------------------+--------------------------------------------

Comment(by leif):

 It turned out that the build (and partially "Configure", by not finding
 the GD and M4RI libraries) was broken for me just because
 '''`LIBRARY_PATH`''' was missing in the environment set up by (or for)
 `SConstruct`.

 So using
 {{{
 #!python
 env = Environment(ENV = os.environ, options = opts, tools = tools,
                   toolpath = '.')
 }}}
 (in `SConstruct`) would work for me, as well as just adding `LIBRARY_PATH`
 to the "exported" environment variables.

 Another option is to add all the directories from `LIBRARY_PATH` to
 `LIBPATH` (in `custom.py`):
 {{{
 #!python
 if os.environ.has_key("LIBRARY_PATH"):
     LIBPATH += os.environ["LIBRARY_PATH"].split(os.pathsep)
 }}}

 (Cf. [comment:ticket:11575:131 this comment] at #11575.)

 [[BR]]

 It's in general of course not bad to export (and/or make use of) other
 standard environment variables, like `CFLAGS` etc., too, as mentioned in
 the ticket's description.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11906#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to