On Wed, Jul 14, 2010 at 2:43 PM, Mike Hansen <mhan...@gmail.com> wrote:
> On Wed, Jul 14, 2010 at 2:31 PM, Johannes <dajo.m...@web.de> wrote:
>> i want to check which part of the sagecode makes problems when trying to
>> port it to python 3.x. For that, I want want to build it with the '-3'
>> option, but i dont want to edit every single makefile. is the a special
>> place to put something like a global python build parameter?
>
> This is a runtime option you pass to python rather than a build
> option.  To make use of it , you can make the following change in
> $SAGE_ROOT/local/bin/sage-sage
>
>
> --- a/sage-sage
> +++ b/sage-sage
> @@ -205,7 +205,7 @@
>
>  sage() {
>     sage_setup
> -    sage-ipython "$@" -i
> +    python -3 sage-ipython "$@" -i
>  }
>
>  if [ $# -eq 0 ]; then
>
>
> Then, you'll see a lot of deprecation warnings when Sage starts.

Also, you can change this line in sage-doctest:

--- a/sage-doctest      Tue Jul 13 18:13:17 2010 -0700
+++ b/sage-doctest      Wed Jul 14 14:56:40 2010 -0700
@@ -125,7 +125,7 @@
 ######################################################
 # The Python binary
 ######################################################
-PYTHON = "python"
+PYTHON = "python -3"


 def pad_zeros(s, size):

and any doctests will be run in -3 mode.  (Which means that huge
numbers of doctests will fail, because the "expected" outputs don't
have the deprecation warnings.)

Carl

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to