From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: Python install paths Date: Thu, 21 Jul 2016 14:11:17 +0300 Message-ID: <20160721111117.GA10486@debian-netbook> References: <20160720092713.GA30117@debian-netbook> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQBt6-0008RD-CJ for guix-devel@gnu.org; Thu, 21 Jul 2016 07:11:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQBt2-0002k0-0o for guix-devel@gnu.org; Thu, 21 Jul 2016 07:11:31 -0400 Received: from flashner.co.il ([178.62.234.194]:48969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQBt1-0002jB-Q9 for guix-devel@gnu.org; Thu, 21 Jul 2016 07:11:27 -0400 Received: from localhost (85.65.166.137.dynamic.barak-online.net [85.65.166.137]) by flashner.co.il (Postfix) with ESMTPSA id 8A46C4025D for ; Thu, 21 Jul 2016 11:11:19 +0000 (UTC) Content-Disposition: inline In-Reply-To: <20160720092713.GA30117@debian-netbook> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --J/dobhs11T7y2rNN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=3D%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.des= ktop']), > https://github.com/micahflee/onionshare/blob/master/setup.py >=20 > 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. >=20 > Has anyone else run into problems like this and figured something out? >=20 I found this page=C2=B9 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. =C2=B9 https://docs.python.org/2/distutils/setupscript.html#installing-addi= tional-files --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --J/dobhs11T7y2rNN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXkK3SAAoJEPTB05F+rO6THJAP/Reh0WMZaB1OPK8vkXs8BOVd NRH1WtT4ZmmoPe8c6opTQt8Q3xXSbCJfg9XGMYCIHQ1n1eQagy0j63jcB5i29sgT i2xMo3n4YYlJXzMNzfkQSCvxcmdNwMctU5RO/e6Y4j3k8vSaVwB9Skq59z/4LvAm OQQCyG2NCKZ1U6FCvHyPwznGoJEfEm+NY/BiNo6mDzoBPN3sQfAfUMvXdY8y3dKD erPfLj9hB6GoKu67qaldPNzXuHwddSB0hbDebEkJCX3A9WOXLtk3Mn6tZMfrn/c3 GI7huYcqEBq1x97hbKnXtezswiWJ3vg63iDxxuzrN4Ujo6zRIaJ/AhWQspK9erkX QA6zH+MnSk74v5XwqN7aoU4aZ9drL+mDfuN2dGoeTVPlLnEgKMn+QnjeTujsyPfa xdj2bFmpz6uOX/nrqLy/ALZmiFV9PusyjvCMYStJP3+hxledr8+wh9fh31CFwPyG rseIBirF6wdv3o87ioK+Psvp9kZyMuPgsjjHmNN+rNhrdO0Uz9r6d490hQpJFhWs 3SSH4Umli5gUA/6ew4t8WM4yX/RMkK8WENuWSMoDsmTxHxGcpOIOEREKJ6zG4WoP abNDrWvqPpAECPLkuvs7Vlk7gq1pHOfogqV27+yGLGKIcpyf/VHaT3RZK4QAg9TH siinLRAv1RvvzysJHcMx =Yvnz -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--