From owner-freebsd-python@freebsd.org Sat Aug 5 05:06:15 2017 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 53C4FDBD529 for ; Sat, 5 Aug 2017 05:06:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3BCCE65627 for ; Sat, 5 Aug 2017 05:06:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3B1DCDBD528; Sat, 5 Aug 2017 05:06:15 +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 3ABBCDBD527 for ; Sat, 5 Aug 2017 05:06:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2910E65626 for ; Sat, 5 Aug 2017 05:06:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v7556CVH012760 for ; Sat, 5 Aug 2017 05:06:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 213636] math/py-matplotlib: Fails to build with python3 Date: Sat, 05 Aug 2017 05:06:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Sat, 05 Aug 2017 05:06:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213636 --- Comment #10 from Kubilay Kocak --- (In reply to rsmith from comment #9) The word 'work' was specifically and intentionally not used, to focus just = on whether or not the USES=3Dpython: is incorrect as it relates = to what matplotlib is supposed to support (per upstream), not whether other factors (default options or other issues/bugs) prevent that from being true= at a certain point in time or in certain conditions (downstream). Keep in mind that USES=3Dpython: is a declarative specifier (= port supports this/these versions), not an imperative one (use this version) Looking back, ports r426883 (update to 1.5.3) states: - Additionally, 1.5.3 version doesn't build with python-3.X because 'import gtk' which the build tries fails in python3. Therefore, python:2. Based on this and on my reading of this issue (which may be incorrect or incomplete), this was and is an incorrect (at a minimum, imprecise) warrant and/or method for restricting builds to 2.7. 1) If the presence (or non-presence) or a build configuration (OPTION or OPTIONs in this case) prevents building with a particular version, then the restriction should be limited/scoped to that build option or build options,= not globally. 2) If a python package ('upstream python package' is meant here, not 'freeb= sd package') supports Python 2 and 3 builds, then the default configuration (r= ead: OPTIONS_DEFAULTS) of the port and it's dependencies should support building with 2/3 by default. Accordingly, and at a minimum: 1) USES=3Dpython: should be relaxed and be made to correctly reflect that matplotlib supports both Python 2 & 3.=20 2) The OPTIONS_DEFAULTS of this port should be modified to work with Python= 2 and 3 builds (if that is indeed possible). (1) and (2) alone are probably insufficient to ensure a good user experienc= e, if certain combinations of OPTIONS must be enabled/disabled to produce a va= lid Python 3 build environment, so: If certain options are mutually exclusive (in that some prevent Python 2 or= 3 builds), then OPTIONS_RADIO's or conditional blocks should be added that ch= eck for valid/invalid options combinations and inform the user with appropriate BROKEN/IGNORE/other methods when incompatible options/configurations are selected. --=20 You are receiving this mail because: You are on the CC list for the bug.=