From owner-freebsd-python@FreeBSD.ORG Mon Sep 16 15:29:03 2013 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A62CC94F; Mon, 16 Sep 2013 15:29:03 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 039472605; Mon, 16 Sep 2013 15:29:02 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id ea20so3368782lab.27 for ; Mon, 16 Sep 2013 08:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ZZGOzu1m+NW+m2o7nw0ZBeezfLNFP5yRAvEu7/F3qMk=; b=IYAyoBh1QFFGc3qJ+eaXyORh8arjgffTHwc4l1mh20WfzaOzkAkGk5jbV549h5k45P YUC+Y1NGxUj2nvMbNT45pp4J4jJuV372B0Iyem6hLzVGSl0Odq5jorJ1rjeldMYqg9oK Y9L64iM9GHz4sK6qERwrwo/XX/kISKYbMI9UvPuDGJh/5I0yvfFDDDxQVjU4QcZf7FeB ZnE4Ko0VtlwWrJ/GqzTNzQiMII5Phr/0N+GGuzw4/n53DLTLsrVwGMBf02tcvzdUM1jx U+6Ntn0TzvLCYi6iRMJRMTYQA7WJVluSTnciAWcHX+yjpowBg2Znb72PI+W6xXL8IKPn snWg== X-Received: by 10.112.40.110 with SMTP id w14mr1634828lbk.42.1379345340953; Mon, 16 Sep 2013 08:29:00 -0700 (PDT) Received: from dhcp174-208-red.yandex.net (dhcp174-208-red.yandex.net. [95.108.174.208]) by mx.google.com with ESMTPSA id ap7sm12026464lac.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Sep 2013 08:29:00 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: [CFT] lang/python becoming a python binary wrapper From: Dmitry Sivachenko In-Reply-To: <20130916152231.GA1391@medusa.sysfault.org> Date: Mon, 16 Sep 2013 19:28:59 +0400 Content-Transfer-Encoding: quoted-printable Message-Id: <60FD2724-4382-4624-B889-4437D42B38A9@gmail.com> References: <20130802180059.GA1278@medusa.sysfault.org> <598601A1-A36E-40D0-8C64-B7892CF7F71F@gmail.com> <20130916152231.GA1391@medusa.sysfault.org> To: Marcus von Appen X-Mailer: Apple Mail (2.1510) Cc: python@freebsd.org X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Sep 2013 15:29:03 -0000 On 16.09.2013, at 19:22, Marcus von Appen wrote: > On, Mon Sep 16, 2013, Dmitry Sivachenko wrote: >=20 >> Hello, >>=20 >> Imagine the following scenario: >> I have both python2 and python3 installed. >> I want python2 to be the default version (lang/python port installs >> python -> python2.7, etc). >>=20 >>=20 >> Then I want to build another port with python3 dependency. >>=20 >> I put USE_PYTHON=3D3.3+ in port's Makefile, but it depends on = lang/python which pulls python2.7 too. >>=20 >> How can I build a python module with 3.X only dependency? >=20 > Right now this can only be arranged with a hack in Mk/bsd.python.mk, > line 581 and following. Those pull in lang/python, since many ports > depend on bin/python, although they are only compatible with a = specific > python version. > Solving this issue and making ports depend on lang/python2 OR > lang/python3 OR a specific python version is on the agenda, but will > take some time, since many ports, that python scripts, have to be = checked. >=20 > We happily invite everyone to check ports for those issues, report = back > to us or provide fixes to solve this faster ;-). >=20 >=20 Before recent switching to new python/python2/python3 scheme I = installed many python modules/programs which use python3 with default = version being 2.7 without any problem (just replace USE_PYTHON=3Dyes to = USE_PYTHON=3D3.3+). And it pulled only python3 as dependency. Now I can't do that :(