#12659: build the sage library in place
---------------------------+------------------------------------------------
   Reporter:  mhansen      |          Owner:  GeorgSWeber 
       Type:  enhancement  |         Status:  needs_review
   Priority:  major        |      Milestone:  sage-5.0    
  Component:  build        |       Keywords:              
Work_issues:               |       Upstream:  N/A         
   Reviewer:               |         Author:  Mike Hansen 
     Merged:               |   Dependencies:              
---------------------------+------------------------------------------------

Comment(by was):

 Hey Mike, could you explain briefly why you delete (not move) all this
 code?  Just curious.
 {{{
 747                     # if cython worked, copy the file to the build
 directory
 748                     pyx_inst_file = '%s/%s'%(SITE_PACKAGES, f)
 749                     retval = os.system('cp %s %s 2>/dev/null'%(f,
 pyx_inst_file))
 750                     # we could do this more elegantly -- load the
 files, use
 751                     # os.path.exists to check that they exist, etc.
 ... but the
 752                     # *vast* majority of the time, the copy just
 works. so this is
 753                     # just specializing for the most common use case.
 754                     if retval:
 755                         dirname, filename =
 os.path.split(pyx_inst_file)
 756                         try:
 757                             os.makedirs(dirname)
 758                         except OSError, e:
 759                             assert e.errno==errno.EEXIST, 'Cannot
 create %s.' % dirname
 760                         retval = os.system('cp %s %s 2>/dev/null'%(f,
 pyx_inst_file))
 761                         if retval:
 762                             raise OSError, "cannot copy %s to
 %s"%(f,pyx_inst_file)
 763                     print "%s --> %s"%(f, pyx_inst_file)
 764
 743                 return r
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12659#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