From owner-freebsd-python@freebsd.org Mon Nov 28 13:27:04 2016 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 358A9C59554 for ; Mon, 28 Nov 2016 13:27:04 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0D7CA1377 for ; Mon, 28 Nov 2016 13:27:04 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 09A62C59552; Mon, 28 Nov 2016 13:27:04 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 092ABC59551; Mon, 28 Nov 2016 13:27:04 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C834D1376; Mon, 28 Nov 2016 13:27:03 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pf0-x241.google.com with SMTP id y68so6524306pfb.1; Mon, 28 Nov 2016 05:27:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:reply-to:subject:to:references:from:cc:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XB8MwpiRwbOFCBACeiZhF0IDgu4kiYCnYK0VxPanwh8=; b=FxvUhB1bcq+6o0GlZCM8mswxunfEiu0wDl6Edl8kDnK9dlXfc/XUIQxry1TcK42YII lFy+FA3nkaAd8KOk+O6yESLI1T6gaNJIygpaQpmCd8QXffkSPaXmHQAL5l0wV240Mxlt Ub6RM7UePPluKu7qkxf2dUMAQGHydzSstTzno4yXLmVYR87qY2xXULAiNYns+oCmt5Ar P4MdmqBz+mebO5TvP7KA52Oj5ancRwg4IoSypqxhpxiUJn5u55IFqZseXIgOzFSFawDF bU2GaGH2Dfgrm3U+qLDdXuDK7Lyqqoo24A6s8qbXIuA5hJT1mPWvOeUxBHtvSVeqfVFw WUCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:reply-to:subject:to:references:from:cc :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=XB8MwpiRwbOFCBACeiZhF0IDgu4kiYCnYK0VxPanwh8=; b=TQD5xV2QTm6JY2iNioqH5WarhgexAcpdGhq3rdXkDMS7bRc5fwX54hwDJEg1Gy2+x6 sh91cD9oPI+iwBUVwQDYpf+tplDWZM9KG3JlIbC3N8IvhCPYJd9wxueRj0q76zutq5Xi IXgX9tUrxfruM/mtFjD19ufkGMrSaN8JYxLgMyOmCnWEcqN8f8Lduux1O5ZTPb5lQD+n g1y49OiJK6MDd5vp1sP5TFpKsaRzHh6QVeuNJgfHwclsQcAhr9MGcnWN8mPsPgUASt+1 lg/4Ltj+XwJRGzVyRwqcdgP7W8kZHsEzPddyQIZ7UZBZeDdE2HQFVXpY2v/ui0EsDyHB oq7w== X-Gm-Message-State: AKaTC00o7OjSb+a4QeBRGDpQpEcf+smc+ribP9T1KrVM9gkCDHzkJ7HS9rzT3lBXIMc1dQ== X-Received: by 10.84.170.195 with SMTP id j61mr49999399plb.13.1480339623146; Mon, 28 Nov 2016 05:27:03 -0800 (PST) Received: from ?IPv6:2001:44b8:31ae:7b01:d44c:889c:2e3a:fc63? (2001-44b8-31ae-7b01-d44c-889c-2e3a-fc63.static.ipv6.internode.on.net. [2001:44b8:31ae:7b01:d44c:889c:2e3a:fc63]) by smtp.gmail.com with ESMTPSA id i124sm69739347pgd.15.2016.11.28.05.27.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Nov 2016 05:27:02 -0800 (PST) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: graphics/py3-cairo cannot find Python.h, but Python.h is present To: tech-lists , freebsd-ports@freebsd.org References: <30b728cd-4f5b-fb00-be41-c2f21e54eded@zyxst.net> <0c801f97-bb8f-3219-4923-5ae6c721d8af@FreeBSD.org> <862561bd-d6ed-d316-9de6-3807285ec0e9@zyxst.net> <15ecc8c9-40db-552b-c459-56507ac7e7c9@FreeBSD.org> <555a5a00-3d6a-ad8d-a0c0-2800cf2e0d62@zyxst.net> <27c87941-575c-70d3-4f41-d7bb400d5a69@zyxst.net> <73d9119f-29fe-1f27-9845-354997077cc5@zyxst.net> From: Kubilay Kocak Cc: FreeBSD Python Message-ID: Date: Tue, 29 Nov 2016 00:24:59 +1100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0a2 MIME-Version: 1.0 In-Reply-To: <73d9119f-29fe-1f27-9845-354997077cc5@zyxst.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2016 13:27:04 -0000 On 27/11/2016 10:50 PM, tech-lists wrote: > On 27/11/2016 11:36, tech-lists wrote: >> also, it's uninstallable from the pkg repo, even though freshports >> suggests it should be: >> >> # pkg install py34-cairo >> Updating FreeBSD repository catalogue... >> FreeBSD repository is up-to-date. >> All repositories are up-to-date. >> pkg: No packages available to install matching 'py34-cairo' have been >> found in the repositories > > pkg install py35-cairo worked :D > The reason for this is the "default version" of python3 was recently updated from 3.4 to 3.5. [1]. What this effectively means for users is that for ports that ask for a 3.x version of Python, the version of packages produced by the official package building cluster are now py35-* versions, where previously they were py34-*. Note: The above only happens for ports (a small minority) that either: - Explicitly *ask* to be built with a 3.x version of Python (Like py3-* ports) - Ports that *only* work with Python 3.x (eg: USES=python:3.4+) For those that don't (the majority), only py27-* versions are built, because 2.7 is the default 'python' version, as in DEFAULT_VERSIONS=python=2.7 in usr/ports/Mk/bsd.default-versions.mk, if not otherwise set/overridden by the user. Note #2: py3-* ports are actually just temporary workarounds used major dependency ports (like py*-cairo), because: We are waiting for the "Variants" feature [2][3] to land in order for the Ports Framework to gain support for "building *multiple* packages from a single port origin", which in the Python ports case, means both py27 and py3x packages being built and made available at the same time for all ports that support both Python 2 and 3. Until then, only 2.7 official packages even if they support multiple versions. [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204519 [2] https://reviews.freebsd.org/D5563 [3] [3] https://github.com/freebsd/poudriere/issues/259 Now you know everything :) ./koobs