public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
From: Christopher Schwan <cschwan@students.uni-mainz.de>
To: <gentoo-science@lists.gentoo.org>
Subject: Re: [gentoo-science] Making ebuilds for sage packages
Date: Mon, 3 Dec 2012 11:56:25 +0100	[thread overview]
Message-ID: <2382837.Ni4Xk3S530@cschwan-laptop> (raw)
In-Reply-To: <20121203011237.GB11108@schlaumatte.gateway.2wire.net>

On Sunday 02 December 2012 17:12:37 you wrote:
> Hi,
> 
> I'm trying to make an ebuild that installes this here into my
> sage-on-gentoo installation:
> https://bitbucket.org/matroid/sage_matroids
> 
> Their setup.py does the following:
> 
> if not os.environ.has_key('SAGE_ROOT'):
>     print "    ERROR: The environment variable SAGE_ROOT must be defined."
>     sys.exit(1)
> else:
>     SAGE_ROOT  = os.environ['SAGE_ROOT']
>     SAGE_LOCAL = SAGE_ROOT + '/local'
>     SAGE_DEVEL = SAGE_ROOT + '/devel'
>     SAGE_INC   = SAGE_LOCAL + '/include/'
> 
> and I wonder if this is wrong?  Is SAGE_LOCAL="/usr" on Gentoo?  In
> particular, where should python packages go that were installed by such
> an ebuild? Maybe into /usr/lib/python/site-packages ?
> 
> Cheers,
> Thomas

For sage-on-gentoo it is wrong, because here SAGE_LOCAL != SAGE_ROOT/local. In 
particular, we have

		SAGE_ROOT="${EPREFIX}/usr/share/sage"
		SAGE_LOCAL="${EPREFIX}/usr/"
		SAGE_DATA="${EPREFIX}/usr/share/sage"
		SAGE_SHARE="${EPREFIX}/usr/share/sage"
		SAGE_DOC="${EPREFIX}/usr/share/sage/devel/sage/doc"
		SAGE_EXTCODE="${EPREFIX}/usr/share/sage/ext"

(from sage-4.5.1-r1.ebuild). Python packages should be installed to the 
default location, just use python/distutils eclasses for that.

Cheers,
Christopher



      parent reply	other threads:[~2012-12-03 12:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-03  1:12 [gentoo-science] Making ebuilds for sage packages Thomas Kahle
2012-12-03  8:01 ` Francois Bissey
2012-12-03 10:56 ` Christopher Schwan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2382837.Ni4Xk3S530@cschwan-laptop \
    --to=cschwan@students.uni-mainz.de \
    --cc=gentoo-science@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox