From owner-freebsd-python@freebsd.org Thu Mar 28 09:51:31 2019 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3152215553EA for ; Thu, 28 Mar 2019 09:51:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 9CD868F258 for ; Thu, 28 Mar 2019 09:51:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5B7AE15553E8; Thu, 28 Mar 2019 09:51:30 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 36EC215553E5 for ; Thu, 28 Mar 2019 09:51:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C53B58F253 for ; Thu, 28 Mar 2019 09:51:29 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id D428F3B2 for ; Thu, 28 Mar 2019 09:51:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x2S9pS55010489 for ; Thu, 28 Mar 2019 09:51:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x2S9pSkC010487 for python@FreeBSD.org; Thu, 28 Mar 2019 09:51:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 226634] devel/py-setuptools: pkg-static: py27-setuptools-38.5.2 conflicts with py36-setuptools-38.5.2 (installs files into the same place). Problematic file: /usr/local/bin/easy_install Date: Thu, 28 Mar 2019 09:51:28 +0000 X-Bugzilla-Reason: AssignedTo 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: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Works As Intended X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@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.29 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Mar 2019 09:51:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226634 --- Comment #10 from Kubilay Kocak --- Elaborating/extending Serge's comment "So the problem was in the way py27-setuptools was built", to benefit others that have reported, or find themselves with, similar issues How the port was built was one of the 'causes', but it is not 'the problem'= (as it is indeed 'intended') The other cause is changing the default version after having installed thin= gs with a different default version. These two things together create the failure case. The reason is, the 'way' a *default* version of a python port gets built *i= s* different than a *non-default* version, in particular for script names (LOCALBASE/bin/*). For example: A default version port will install: LOCALBASE/bin/foo, *AND* LOCALBASE/bin/foo-X.Y A non-default version port will *ONLY* install: LOCALBASE/bin/foo-X.Y The reason is, only ONE port can have the 'LOCALBASE/bin/foo' (version-less) name, and that one port is the *current* 'default version'. Default version can either be set by the user, or the default (set in Mk/python.mk) Now if a user has a system where 2.7 'was' the default (which is every new = user to freebsd, at present), they'll have the following files installed: easy_install easy_install-2.7 Then they switch to 3.6 (3.6 now the default) Something wants to install setuptools, 3.6 is now the default version, so it goes to install: easy_install easy_install-3.6 easy_install already exists, boom, we have a conflict. --=20 You are receiving this mail because: You are the assignee for the bug.=