unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: guix-devel@gnu.org
Subject: Re: Python install paths
Date: Thu, 21 Jul 2016 14:11:17 +0300	[thread overview]
Message-ID: <20160721111117.GA10486@debian-netbook> (raw)
In-Reply-To: <20160720092713.GA30117@debian-netbook>

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

On Wed, Jul 20, 2016 at 12:27:13PM +0300, Efraim Flashner wrote:
> I've been working slowly on getting onionshare packaged, and I've run
> into a problem with the install phase. Normally everything just works,
> but our --prefix=%out doesn't seem to overide the sys.prefix install
> path in some setup.py files. The one in onionshare has some that look
> like this:
> (os.path.join(sys.prefix, 'share/applications'), ['install/onionshare.desktop']),
> https://github.com/micahflee/onionshare/blob/master/setup.py
> 
> I've tried using substitute to switch 'sys.prefix' to %out, and it
> installs but the program can't seem to find the files its looking for,
> notably the locales.
> 
> Has anyone else run into problems like this and figured something out?
> 

I found this page¹ that, while targeted at python-2, still worked as a
template for creating a patch for setup.py to make all the files install
in the correct prefix.

¹ https://docs.python.org/2/distutils/setupscript.html#installing-additional-files


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2016-07-21 11:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-20  9:27 Python install paths Efraim Flashner
2016-07-21 11:11 ` Efraim Flashner [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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20160721111117.GA10486@debian-netbook \
    --to=efraim@flashner.co.il \
    --cc=guix-devel@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).