#12659: build the sage library in place
-------------------------------+--------------------------------------------
       Reporter:  mhansen      |         Owner:  GeorgSWeber  
           Type:  enhancement  |        Status:  needs_work   
       Priority:  major        |     Milestone:  sage-5.0     
      Component:  build        |    Resolution:               
       Keywords:               |   Work issues:               
Report Upstream:  N/A          |     Reviewers:  William Stein
        Authors:  Mike Hansen  |     Merged in:               
   Dependencies:  #12684       |      Stopgaps:               
-------------------------------+--------------------------------------------

Comment (by jhpalmieri):

 I took a fresh Sage tarball, applied the patch here to the sage spkg, and
 then built Sage.  Then I ran `./sage --sdist ...`. I got this error:
 {{{
 running build_ext
 Traceback (most recent call last):
   File "setup.py", line 983, in <module>
     include_dirs = include_dirs)
   File
 
"/scratch/palmieri/12659/sage-5.0.beta12-gcc/local/lib/python/distutils/core.py",
 line 152, in setup
     dist.run_commands()
   File
 
"/scratch/palmieri/12659/sage-5.0.beta12-gcc/local/lib/python/distutils/dist.py",
 line 953, in run_commands
     self.run_command(cmd)
   File
 
"/scratch/palmieri/12659/sage-5.0.beta12-gcc/local/lib/python/distutils/dist.py",
 line 972, in run_command
     cmd_obj.run()
   File
 
"/scratch/palmieri/12659/sage-5.0.beta12-gcc/local/lib/python/distutils/command/install.py",
 line 563, in run
     self.run_command('build')
   File
 
"/scratch/palmieri/12659/sage-5.0.beta12-gcc/local/lib/python/distutils/cmd.py",
 line 326, in run_command
     self.distribution.run_command(command)
   File
 
"/scratch/palmieri/12659/sage-5.0.beta12-gcc/local/lib/python/distutils/dist.py",
 line 972, in run_command
     cmd_obj.run()
   File
 
"/scratch/palmieri/12659/sage-5.0.beta12-gcc/local/lib/python/distutils/command/build.py",
 line 127, in run
     self.run_command(cmd_name)
   File
 
"/scratch/palmieri/12659/sage-5.0.beta12-gcc/local/lib/python/distutils/cmd.py",
 line 326, in run_command
     self.distribution.run_command(command)
   File
 
"/scratch/palmieri/12659/sage-5.0.beta12-gcc/local/lib/python/distutils/dist.py",
 line 972, in run_command
     cmd_obj.run()
   File
 
"/scratch/palmieri/12659/sage-5.0.beta12-gcc/local/lib/python/distutils/command/build_ext.py",
 line 340, in run
     self.build_extensions()
   File "setup.py", line 318, in build_extensions
     raise RuntimeError, "only in-place builds are currently supported"
 RuntimeError: only in-place builds are currently supported
 }}}
 This doesn't stop the build, but do we need to worry about it? If not, we
 should suppress it.

 Also, as mentioned above, I took an existing Sage installation, applied
 the patch to devel/sage, and ran `sage --sdist ...`. I got the same error
 message.  Also, in the existing Sage installation, while
 `devel/sage/sage/version.py` was correct,
 `devel/sage/build/sage/version.py` was not. `local/lib/python/site-
 packages/sage` linked to `build/sage/`, and this is what led to the
 incorrect sage-banner that I mentioned earlier. Should the installation
 instructions include forcibly relinking `local/lib/.../sage` to the
 correct thing, if applying to an existing Sage installation?

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