After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687692 - Install python2 symlink in ~/.local/bin when running on Debian
Install python2 symlink in ~/.local/bin when running on Debian
Status: RESOLVED FIXED
Product: jhbuild
Classification: Infrastructure
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks: 687743
 
 
Reported: 2012-11-05 22:16 UTC by Colin Walters
Modified: 2012-11-10 00:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Install python2 symlink in ~/.local/bin when running on Debian (1.91 KB, patch)
2012-11-05 22:16 UTC, Colin Walters
reviewed Details | Review
Install python2 symlink in ~/.local/bin when running on Debian (2.35 KB, patch)
2012-11-06 15:43 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2012-11-05 22:16:34 UTC
This hack allows all GNOME modules to use "python2" to find Python 2.
Comment 1 Colin Walters 2012-11-05 22:16:36 UTC
Created attachment 228194 [details] [review]
Install python2 symlink in ~/.local/bin when running on Debian
Comment 2 Martin Pitt 2012-11-06 07:55:30 UTC
Thanks for this! I consider the lack of /usr/bin/python2 a major bug, under the light of PEP-394 which ruined the reliability of /usr/bin/python. I asked our Python maintainers about this, but until then this is a nice hack.
Comment 3 Craig Keogh 2012-11-06 12:00:11 UTC
Review of attachment 228194 [details] [review]:

Thank you for the patch. I like the idea.

::: debian-python2-postinstall-hook.sh
@@ +1,1 @@
+#!/bin/sh

I don't like this file in the jhbuild root. What about putting the file in the scripts dir?
Comment 4 Colin Walters 2012-11-06 15:43:41 UTC
Created attachment 228258 [details] [review]
Install python2 symlink in ~/.local/bin when running on Debian

Now in scripts/
Comment 5 Craig Keogh 2012-11-10 00:42:05 UTC
Comment on attachment 228258 [details] [review]
Install python2 symlink in ~/.local/bin when running on Debian

Thank you! Committed.
http://git.gnome.org/browse/jhbuild/commit/?id=6007add3779f8aa2a28e49394c88b9e6ddc494c7