From nobody Fri Mar 25 13:50:48 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 15E671A347B7; Fri, 25 Mar 2022 13:50:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KQ3QL381Nz3hCn; Fri, 25 Mar 2022 13:50:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L7r7OP6NdRz5chIzZPbM1l+aqEff9bPCikGUdPJrhl4=; b=aK4c2xuXFMBdq3KpjSZNoIEdZs59OhfbZOwdo+J4QWdZyagF3s/CW7KHeo8CObRJ1g+P2l y00+jyQeWgyJuBMqjCRpHDFTdfvTwWrO3cCilfHL4vHXZ/0k3FbqE91vKgH2PKMKyvfeDr vC29Ztz0yWJXXnxWIQQcl5mptDAfechGhq6Qqtm5SpY0LNS7yyNYnIJeGQjpQgQBOkB9rK QmhOuhw9CfKfn5j1FvhzpMl2zTp20udfnWDy2I8DhoUJec08udsNy7VC8fEmdLxI47Ndai l4peWyOMDtUd/YctixwSgtTUQlLZ6P4WH4v2k4OtmN4wJmiLUx8lMIoV2pGzvQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DE7A85871; Fri, 25 Mar 2022 13:50:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22PDomWO037441; Fri, 25 Mar 2022 13:50:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22PDomXQ037440; Fri, 25 Mar 2022 13:50:48 GMT (envelope-from git) Date: Fri, 25 Mar 2022 13:50:48 GMT Message-Id: <202203251350.22PDomXQ037440@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 2614c54c3c8c - main - science/py-qspin: Fix build with setuptools 58.0.0+ List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2614c54c3c8cfd5ce41de3a4235054de912a9a65 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L7r7OP6NdRz5chIzZPbM1l+aqEff9bPCikGUdPJrhl4=; b=dJfzuPi3VXOzcHA5+a782m5uwPe/AlVpl2D01eDOlN+fpseo7zOanxuC8+5nprdb/zNOR3 k7bEy6pM9D2FrglXxsaNiAcphhvyklrv1JXw17YdxSm7tkByIQ2xpPUoc5r1x/Ft1h3LDz ztzRrQRQvm8FW1vuhSGjQ14X6r/t3I7Rv8x/8gnOiTBFWBuhszOM7r3vKyd91qjt0LjmSG Tnvzz0xyiIWUPQR6/SGP38umUhrTzxrV9uut1whViMVjNmkStPo0SsYLazQShteJyPOwVS Ua12V56nDISDIr+ZD9VMd5nhf4Y6DecGmFBg3vu9JtdH/3qorfauKcntZfUFZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648216251; a=rsa-sha256; cv=none; b=TkaXGewxjFYwCvhULjT4WwB6j0L7Ue97YI+1/2UIWY3GiT+hh2RVLso8Jh0CdwJtDyI3tw ElQlN50Ly4qvJqMUXh6s7IeWHaHeZza98NB26P3Hv3+v4imiA27bSq7TUm1KSoZWGnbaJ6 KSTVWNLZFthhmz/MNqQ+uNJ2sFHO53HY8EvnOJy56ftN0SnBOQNeTyrYOhDww2JcwTl9FH 8BaYVoVM41iEwpr5skmZyN+EzhHOW08XCNxuubxFZMYa9y5X0vkykgQE0YnU/9ckuO3tD7 cJejbmfWdCw+YLYRHnHx/zXS7b4SY0sKBvJF7TN0vuhx6AGgf9nOL57QQXTLjw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=2614c54c3c8cfd5ce41de3a4235054de912a9a65 commit 2614c54c3c8cfd5ce41de3a4235054de912a9a65 Author: Po-Chuan Hsieh AuthorDate: 2022-03-25 13:33:37 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-25 13:38:19 +0000 science/py-qspin: Fix build with setuptools 58.0.0+ With hat: python --- science/py-qspin/files/patch-2to3 | 113 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) diff --git a/science/py-qspin/files/patch-2to3 b/science/py-qspin/files/patch-2to3 new file mode 100644 index 000000000000..6114807db1bf --- /dev/null +++ b/science/py-qspin/files/patch-2to3 @@ -0,0 +1,113 @@ +--- qspin/jones.py.orig 2016-08-28 06:00:41 UTC ++++ qspin/jones.py +@@ -71,61 +71,61 @@ def vsth(): + szc = 0.5*np.matrix([[1,-i],[i,1]]) - 0.5*np.matrix([[1,i],[-i,1]]) + + def photon(): +- print '----------------' +- print '|H>' ++ print('----------------') ++ print('|H>') + J,a,rho = jones(0,0,'blue') +- print 'J = ',J.T +- print 'a = ',a +- print 'rho = ' +- print rho +- print 'spins' +- print np.trace(sx*rho),np.trace(sy*rho),np.trace(sz*rho) +- print '----------------' +- print '|V>' ++ print('J = ',J.T) ++ print('a = ',a) ++ print('rho = ') ++ print(rho) ++ print('spins') ++ print(np.trace(sx*rho),np.trace(sy*rho),np.trace(sz*rho)) ++ print('----------------') ++ print('|V>') + J,a,rho = jones(pi,0,'blue') +- print 'J = ',J.T +- print 'a = ',a +- print 'rho = ' +- print rho +- print 'spins' +- print np.trace(sx*rho),np.trace(sy*rho),np.trace(sz*rho) +- print '----------------' +- print '|D> = |H>+|V>' ++ print('J = ',J.T) ++ print('a = ',a) ++ print('rho = ') ++ print(rho) ++ print('spins') ++ print(np.trace(sx*rho),np.trace(sy*rho),np.trace(sz*rho)) ++ print('----------------') ++ print('|D> = |H>+|V>') + J,a,rho = jones(pi/2,0,'green') +- print 'J = ',J.T +- print 'a = ',a +- print 'rho = ' +- print rho +- print 'spins' +- print np.trace(sx*rho),np.trace(sy*rho),np.trace(sz*rho) +- print '----------------' +- print '|A> = |H>-|V>' ++ print('J = ',J.T) ++ print('a = ',a) ++ print('rho = ') ++ print(rho) ++ print('spins') ++ print(np.trace(sx*rho),np.trace(sy*rho),np.trace(sz*rho)) ++ print('----------------') ++ print('|A> = |H>-|V>') + J,a,rho = jones(pi/2,pi,'green') +- print 'J = ',J.T +- print 'a = ',a +- print 'rho = ' +- print rho +- print 'spins' +- print np.trace(sx*rho),np.trace(sy*rho),np.trace(sz*rho) +- print '----------------' +- print '|L> = |H>+i|V>' ++ print('J = ',J.T) ++ print('a = ',a) ++ print('rho = ') ++ print(rho) ++ print('spins') ++ print(np.trace(sx*rho),np.trace(sy*rho),np.trace(sz*rho)) ++ print('----------------') ++ print('|L> = |H>+i|V>') + J,a,rho = jones(pi/2,pi/2,'red') +- print 'J = ',J.T +- print 'a = ',a +- print 'rho = ' +- print rho +- print 'spins' +- print np.trace(sx*rho),np.trace(sy*rho),np.trace(sz*rho) +- print '----------------' +- print '|R> = |H>-i|V>' ++ print('J = ',J.T) ++ print('a = ',a) ++ print('rho = ') ++ print(rho) ++ print('spins') ++ print(np.trace(sx*rho),np.trace(sy*rho),np.trace(sz*rho)) ++ print('----------------') ++ print('|R> = |H>-i|V>') + J,a,rho = jones(pi/2,-pi/2,'red') +- print 'J = ',J.T +- print 'a = ',a +- print 'rho = ' +- print rho +- print 'spins' +- print np.trace(sx*rho),np.trace(sy*rho),np.trace(sz*rho) +- print '----------------' ++ print('J = ',J.T) ++ print('a = ',a) ++ print('rho = ') ++ print(rho) ++ print('spins') ++ print(np.trace(sx*rho),np.trace(sy*rho),np.trace(sz*rho)) ++ print('----------------') + + V = np.matrix([1,0]).T + H = np.matrix([0,1]).T