1 |
On Sunday 02 December 2012 17:12:37 you wrote: |
2 |
> Hi, |
3 |
> |
4 |
> I'm trying to make an ebuild that installes this here into my |
5 |
> sage-on-gentoo installation: |
6 |
> https://bitbucket.org/matroid/sage_matroids |
7 |
> |
8 |
> Their setup.py does the following: |
9 |
> |
10 |
> if not os.environ.has_key('SAGE_ROOT'): |
11 |
> print " ERROR: The environment variable SAGE_ROOT must be defined." |
12 |
> sys.exit(1) |
13 |
> else: |
14 |
> SAGE_ROOT = os.environ['SAGE_ROOT'] |
15 |
> SAGE_LOCAL = SAGE_ROOT + '/local' |
16 |
> SAGE_DEVEL = SAGE_ROOT + '/devel' |
17 |
> SAGE_INC = SAGE_LOCAL + '/include/' |
18 |
> |
19 |
> and I wonder if this is wrong? Is SAGE_LOCAL="/usr" on Gentoo? In |
20 |
> particular, where should python packages go that were installed by such |
21 |
> an ebuild? Maybe into /usr/lib/python/site-packages ? |
22 |
> |
23 |
> Cheers, |
24 |
> Thomas |
25 |
|
26 |
For sage-on-gentoo it is wrong, because here SAGE_LOCAL != SAGE_ROOT/local. In |
27 |
particular, we have |
28 |
|
29 |
SAGE_ROOT="${EPREFIX}/usr/share/sage" |
30 |
SAGE_LOCAL="${EPREFIX}/usr/" |
31 |
SAGE_DATA="${EPREFIX}/usr/share/sage" |
32 |
SAGE_SHARE="${EPREFIX}/usr/share/sage" |
33 |
SAGE_DOC="${EPREFIX}/usr/share/sage/devel/sage/doc" |
34 |
SAGE_EXTCODE="${EPREFIX}/usr/share/sage/ext" |
35 |
|
36 |
(from sage-4.5.1-r1.ebuild). Python packages should be installed to the |
37 |
default location, just use python/distutils eclasses for that. |
38 |
|
39 |
Cheers, |
40 |
Christopher |