From owner-freebsd-ports@FreeBSD.ORG Mon Jul 29 07:46:25 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C30136FB for ; Mon, 29 Jul 2013 07:46:25 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5CFBC237C for ; Mon, 29 Jul 2013 07:46:25 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id f14so496064wiw.4 for ; Mon, 29 Jul 2013 00:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=hlC3xKC7KDXC56EexO7D4qjfKpSVa0SGIrGArB+5Boo=; b=fuHMNWLfnMMU1hb7yMGbwNz+9gMa6JYk2UMgiu0yIjWA3oo+fYJtjqOQk8ew9Ucx7k CaaK2DpO+itebTGGRLj4SNDZQhZBmVcxthSkRT1xtINCH2g2+xWOOq74OF+XtgReDwFC 8xX7Je10oGnrmWuQt7ezdMiEc3j6pipIgNhtOZkNqe3zfZlQC3cTxh4EznGrKhYosCHS Ov1AsXnKLKHzUjln/St6Xmn74brVcCljgJo/h6TZsUGlluy1PmymDVNjoelff1c06Q7J KppiWraPiupYa1pMhVD1j3B8LvWSUAeUHC84OAydXoHiYXaKcKK+UugP8xT5bOAegFGn 4FDw== MIME-Version: 1.0 X-Received: by 10.194.103.226 with SMTP id fz2mr41891436wjb.75.1375083983684; Mon, 29 Jul 2013 00:46:23 -0700 (PDT) Received: by 10.194.239.164 with HTTP; Mon, 29 Jul 2013 00:46:23 -0700 (PDT) In-Reply-To: References: Date: Mon, 29 Jul 2013 09:46:23 +0200 Message-ID: Subject: Re: python 2 and 3 modules From: David Demelier To: Daniel Braniss Content-Type: text/plain; charset=UTF-8 Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jul 2013 07:46:25 -0000 2013/7/28 Daniel Braniss : > Hi, > I need to be able to have both (2.7 and 3.2) modules. > setting PYTHON_VERSION=3.2 in /etc/make.conf compiles properly, > but make install, insists that that the 2.7 version is installed! > after deinstalling, it will install the 3.2 version in the correct directory: > /usr/local/lib/python3.2/site-path > but now I lost the 2.7 version. > > the same happens if I try to install the 2.7 version, it will complain > that the 3,2 version is installed. > > BTW, the comments in ports/Mk/bsd.python.mk are very confusing and > some are wrong: > # PYTHON_VERSION - Version of the python binary in your ${PATH}, in the > # format "python2.0". Set this in your > makefile in case you > # want to build extensions with an > older binary. > # default: depends on the version of > your python binary > > setting it to "python3.2" produces errors in the make, while 3.2 is ok > > is there any fix? > > thanks, > danny > For the moment its pretty difficult to install python 2.7 and 3.3 at the same time. However, if you plan to install python 3.3, you need to set PYTHON_DEFAULT_VERSION to "python3.3" and not PYTHON_VERSION. Cheers, -- Demelier David