Gentoo Archives: gentoo-science

From: P Purkayastha <ppurka@×××××.com>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] Can not run sage-notebook
Date: Mon, 22 Aug 2011 09:28:22
Message-Id: 4E52211E.7030904@gmail.com
In Reply to: Re: [gentoo-science] Can not run sage-notebook by Christopher Schwan
1 On 08/22/2011 04:56 PM, Christopher Schwan wrote:
2 > On Monday 22 August 2011 10:57:59 P Purkayastha wrote:
3 >> On 08/22/2011 07:59 AM, fbissey@××××××××××××.nz wrote:
4 >>> Quoting P Purkayastha<ppurka@×××××.com>:
5 >>>> On 08/22/2011 06:48 AM, fbissey@××××××××××××.nz wrote:
6 >>>>> Quoting P Purkayastha<ppurka@×××××.com>:
7 >>>>>> Indeed cython was not rebuilt after/during the update of sage.
8 >>>>>> Rebuilding it doesn't make any difference. Still get the same
9 >>>>>> errors.
10 >>>>>> eix output just before remerging cython:
11 >>>>>>
12 >>>>>> [I] dev-python/cython
13 >>>>>> Available versions: 0.14.1 0.14.1-r1[1] {doc examples}
14 >>>>>> Installed versions: 0.14.1-r1[1](10:34:40 PM 08/05/2011)(-doc
15 >>>>>> -examples)
16 >>>>>> Homepage: http://www.cython.org/
17 >>>>>> http://pypi.python.org/pypi/Cython
18 >>>>>> Description: The Cython compiler for writing C extensions
19 >>>>>> for the Python language
20 >>>>>
21 >>>>> Did you follow up with a rebuild of pynac, sage-clib and sage?
22 >>>>>
23 >>>>> Francois
24 >>>>
25 >>>> I haev tried rebuilding pynac, sage-clib, sage, sage-baselayout and
26 >>>> sage-notebook. The error persists.
27 >>>>
28 >>>>
29 >>>> ~> genlop -l --date 3 hours ago
30 >>>> * dev-python/cython
31 >>>>
32 >>>> Mon Aug 22 06:05:25 2011>>> dev-python/cython-0.14.1-r1
33 >>>> Mon Aug 22 06:56:32 2011>>> sci-libs/pynac-0.2.3
34 >>>> Mon Aug 22 06:56:58 2011>>> sci-mathematics/sage-clib-4.7.1
35 >>>> Mon Aug 22 07:09:34 2011>>> sci-mathematics/sage-4.7.1
36 >>>> Mon Aug 22 07:12:48 2011>>> dev-lang/yasm-1.1.0-r1
37 >>>> Mon Aug 22 07:14:55 2011>>> sci-mathematics/sage-notebook-0.8.19
38 >>>> Mon Aug 22 07:15:30 2011>>> sci-mathematics/sage-baselayout-4.7.1
39 >>>> ~>
40 >>>
41 >>> OK let's look at some other things:
42 >>> printenv | grep SAGE
43 >>
44 >> ~> env | grep SAGE
45 >> SAGE_DATA=/usr/share/sage/data
46 >> SAGE_DOC=/usr/share/sage/devel/sage/doc
47 >> SAGE_ROOT=/usr/share/sage
48 >> SAGE_LOCAL=/usr
49 >>
50 >>> eix ipython
51 >>
52 >> ~> eix ipython
53 >> [I] dev-python/ipython
54 >> Available versions: 0.10 0.10.1 0.10.2 {doc emacs examples
55 >> gnuplot readline smp test wxwidgets}
56 >> Installed versions: 0.10.2(02:29:03 AM 05/20/2011)(readline smp
57 >> -doc -emacs -examples -gnuplot -test -wxwidgets)
58 >> Homepage: http://ipython.scipy.org/
59 >> http://pypi.python.org/pypi/ipython
60 >> Description: An interactive computing environment for Python
61 >>
62 >>> What is your current shell?
63 >>
64 >> /bin/zsh
65 >> Running
66 >> exec bash
67 >> sage
68 >>
69 >> doesn't make any difference.
70 >>
71 >>> Outout of "sage -gdb" if you installed with the debug useflag.
72 >>> Did you install the testsuite (useflag of the same name).
73 >>
74 >> Unfortunately, I didnt' compile either of them. Will do that later tonight.
75 >>
76 >>> Francois
77 >>
78 >> Thanks for patiently helping. :)
79 >
80 > Hi,
81 >
82 > Francois was right - compiling without the testsuite yields the same behavior
83 > on my box. So for the time being,
84 >
85 > USE=testsuite emerge -1 sage-baselayout
86 > USE=testsuite emerge -1 sage
87 >
88 > solves the problem.
89 >
90 > Any ideas which files are removed with USE=-testsuite but still needed ?
91 >
92 > Cheers,
93 > Christopher
94 >
95
96 The only difference testsuite seems to make is *remove* files :) It
97 apparently has no effect on sage-baselayout as far as I can see from the
98 ebuild. But in sage ebuild, it removes stuff:
99
100 src_install() {
101 distutils_src_install
102
103 if use testsuite ; then
104 # install testable sources and sources needed for testing
105 find sage ! \( -name "*.py" -o -name "*.pyx" -o -name "*.pxd" -o \
106 -name "*.pxi" \) -type f -delete \
107 || die "failed to remove non-testable sources"
108
109 insinto /usr/share/sage/devel/sage-main
110 doins -r sage || die
111 fi