unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Python install paths
@ 2016-07-20  9:27 Efraim Flashner
  2016-07-21 11:11 ` Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: Efraim Flashner @ 2016-07-20  9:27 UTC (permalink / raw)
  To: guix-devel

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

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?


-- 
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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Python install paths
  2016-07-20  9:27 Python install paths Efraim Flashner
@ 2016-07-21 11:11 ` Efraim Flashner
  0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2016-07-21 11:11 UTC (permalink / raw)
  To: guix-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-21 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-20  9:27 Python install paths Efraim Flashner
2016-07-21 11:11 ` Efraim Flashner

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).