Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E1A859A3E for ; Mon, 28 Nov 2011 19:16:02 +0000 (UTC) Received: (qmail 70142 invoked by uid 500); 28 Nov 2011 19:16:02 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 69992 invoked by uid 500); 28 Nov 2011 19:16:02 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 69984 invoked by uid 99); 28 Nov 2011 19:16:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2011 19:16:02 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2011 19:16:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E7C33A4FD3 for ; Mon, 28 Nov 2011 19:15:41 +0000 (UTC) Date: Mon, 28 Nov 2011 19:15:41 +0000 (UTC) From: "T Jake Luciani (Issue Comment Edited) (JIRA)" To: commits@cassandra.apache.org Message-ID: <837097162.19001.1322507741950.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1048063095.791.1320435591686.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (CASSANDRA-3457) Make cqlsh look for a suitable python version MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-3457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158650#comment-13158650 ] T Jake Luciani edited comment on CASSANDRA-3457 at 11/28/11 7:15 PM: --------------------------------------------------------------------- tested on centos 6 which used 2.4 by default, with this patch it finds the right version so +1 was (Author: tjake): tested +1 > Make cqlsh look for a suitable python version > --------------------------------------------- > > Key: CASSANDRA-3457 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3457 > Project: Cassandra > Issue Type: Bug > Components: Tools > Affects Versions: 1.0.3 > Reporter: paul cannon > Assignee: paul cannon > Priority: Minor > Labels: cqlsh > Fix For: 1.0.5 > > Attachments: 3457.patch.txt > > > On RHEL 5, which I guess we still want to support, the default "python" in the path is still 2.4. cqlsh does use a fair number of python features introduced in 2.5, like collections.defaultdict, functools.partial, generators. We can require RHEL 5 users to install a later python from EPEL, but we'd have to call it as 'python2.5', or 'python2.6', etc. > So rather than take the time to vet everything against python2.4, we may want to make a wrapper script for cqlsh that checks for the existence of python2.7, 2.6, and 2.5, and calls the appropriate one to run the real cqlsh. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira