From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web09.1563.1608310783576987499 for ; Fri, 18 Dec 2020 08:59:43 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=E/euIH15; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: erik.c.bjorge@intel.com) IronPort-SDR: uFiAegpUhMQrXbbzD33utkKYF1+IblntMukZ11gdMroPO1EllO/uFJl7LU70w36zBwWuxO0RtN u9RorQ+xtFrA== X-IronPort-AV: E=McAfee;i="6000,8403,9839"; a="163200019" X-IronPort-AV: E=Sophos;i="5.78,431,1599548400"; d="scan'208";a="163200019" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2020 08:59:42 -0800 IronPort-SDR: yUGx/Khv1IuHa0692VCv7C9KDxL9vC80lpek70aCQF3tT0rI3v6d4FzlnpAqgzNMNF09feq+SK e3495jiQjpKg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,431,1599548400"; d="scan'208";a="340588803" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga008.fm.intel.com with ESMTP; 18 Dec 2020 08:59:42 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 18 Dec 2020 08:59:41 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Fri, 18 Dec 2020 08:59:41 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.174) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Fri, 18 Dec 2020 08:59:38 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GM7Ml2oX7URfv8EmLshaKhRWi08FlrnVuzsBNzzk01O5W+WMbl5oQp/6CYKkX5kv2m3+nptQIElU+YaYwu6JK/cb5htbQLEpnOwv6SGAGmGrX7SU8hAz28in9yqqfEqSn07lJDhzeYEPSMl7TovfqmCeHUVysgvq4l+PbCv2sMKfmz3nEpL/5PmK5ccw5Z1+zEX6j/Mstm2ArpzXlGzgL9hRloM+MOHM7KdO89yUC/m4+EDoSTTNI69ZKPCUw/2U/E9WsIAvTmDWrYAp6purQ4uiJPvrHhFEapiTmPody9huNUSo5I3+zB0pwEWQvUAnax3ry77JzXLzkcveEa4M1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pffs3f+l6blah6x5T8V8OHsIHBldqNxOn5Kk7JRNkEc=; b=ZbXBkKc9rVWgLDs9gKgsCtMy2HUvldknzrLo1UfmqHshz1PHCKdsdCJbiVrbNORkg2mbbXLHCLAgzF1tHcqlHoNZJiMn5/W3ho0D7hI5Nd2hftIU4gHh4mDPRP2Sc6u1bnDlTimJ5QdLE3ncKEMoUpDkfV6VlD8g8TnDjqu79e68UbenO+/tYrRyxrXX4ojbTVYfLNf0hqGfeZECsDV2Lyy4gwyhEwn73bK7E4wHPkeX6URfQA9iKHsVcPNsSxYv8jH/2BhHtTJjCqCvDpYUf8CW0uY8U9u18YIAhC0l3QLaCfT+Vt2Zl2J0aleZEv/McUpkAG4ADZnrt/5NttUk1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pffs3f+l6blah6x5T8V8OHsIHBldqNxOn5Kk7JRNkEc=; b=E/euIH15z3/iv7UCp1HjZgPijdFmjhx2U4MpFB7G0WJ2MUvApTREzHSulkoakqIuBPGcpkCIR6L6b497unxG29y7THIJKnRdrlg+bkQZBVTXL0UmyqEroAg/IFbzyRtiT2Qo8dadfYlINwMzjVf0lwJ+4zoA5DwyuQsyq/S1jlc= Received: from MW3PR11MB4554.namprd11.prod.outlook.com (2603:10b6:303:5d::7) by CO1PR11MB5106.namprd11.prod.outlook.com (2603:10b6:303:93::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Fri, 18 Dec 2020 16:59:37 +0000 Received: from MW3PR11MB4554.namprd11.prod.outlook.com ([fe80::7dc3:6311:ac6:7393]) by MW3PR11MB4554.namprd11.prod.outlook.com ([fe80::7dc3:6311:ac6:7393%8]) with mapi id 15.20.3676.025; Fri, 18 Dec 2020 16:59:37 +0000 From: "Bjorge, Erik C" To: "devel@edk2.groups.io" , "Desimone, Nathaniel L" CC: "Desimone, Ashley E" , "Pandya, Puja" , Bret Barkelew , "Agyeman, Prince" Subject: Re: [edk2-devel] [edk2-staging/EdkRepo] [PATCH] EdkRepo: Prevent environment variables from causing install failures Thread-Topic: [edk2-devel] [edk2-staging/EdkRepo] [PATCH] EdkRepo: Prevent environment variables from causing install failures Thread-Index: AQHW1PjmEkM70LUefESTKTNmj3TTq6n9FEFw Date: Fri, 18 Dec 2020 16:59:36 +0000 Message-ID: References: <20201218044657.2930-1-nathaniel.l.desimone@intel.com> In-Reply-To: <20201218044657.2930-1-nathaniel.l.desimone@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [50.53.38.57] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bf26ce53-0d91-4f26-39b6-08d8a3764d54 x-ms-traffictypediagnostic: CO1PR11MB5106: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3631; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OXdf7ws6Mlt3OvCcRhpWvw+1rqmeDI8JJOdoDkDMKgR+NcYu5d9zKO69bNxd056sN4cUTbaIdVGSucwf3rGCxqEYmo1Ujxr9Md7AjCnI4zejVlteSulWl+9IVuXL/oLkqzcCawFqPEw4aAHcIKz5B9gKQeqeg9g4azCP4n5Rc+yrjRlnUeDHS3Pscq4ZSxZwzaWtNJWp/UIWy0aSa82w2zAdnp1uHGed5tqFVO0IGyEECPv9S9yMWQtPbGP3stxzt26DwgpNKklK9ZWqpVemL7l1pncX2He5jsPb5HFykepi5mKIdkZflKtGVGpLbDkKYOqKyuLmc9M4gJeuvrha2hmyKClSJ36gjTUrHGpWvRneL+bO2q/XKvZI4lFlzF3K6leLRi7Fv4Z4Uuv2+7SsEg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR11MB4554.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(366004)(39860400002)(136003)(376002)(346002)(9686003)(66476007)(8936002)(6636002)(66446008)(64756008)(66556008)(107886003)(8676002)(52536014)(66946007)(71200400001)(186003)(2906002)(5660300002)(26005)(6506007)(54906003)(478600001)(53546011)(110136005)(7696005)(4326008)(55016002)(86362001)(83380400001)(316002)(76116006)(966005)(33656002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?eHlIPsZJ+JJVeCQ+gRVj8Oba5QvJWbAhLIIGnYVApt+V75DNFWTcpohdEn/r?= =?us-ascii?Q?dEW2Z8+n8gaJGepi8bWxK1FbVR1jdpSq8z5L2ye7e6iLfC6Nn6iBnXDm0hlV?= =?us-ascii?Q?bzgXgSFWMqRg+hCxqMWV11L7fhss0cwKahGK0hStpVYxhziGS8pCD5sc3tXY?= =?us-ascii?Q?XOyL8jxz0/4PiI2IKVX23EtxOpIyRDyfFiFt4dpwmChJpv43B7t0plkxIqXE?= =?us-ascii?Q?ky2GYY6DhfJ0X5WyCM8qUQcQZ5l2HrEP+gJ2/x2nH7DBmBT9AS4rLCCnpQRy?= =?us-ascii?Q?uK/0poz6x1rGXd71Wt+Ol2O1JHIp1Wb+u90iSbZtbCasKqq+YY9hJQUdCvA7?= =?us-ascii?Q?zXTu8fTeUsRUmDHXYVqMdHY0jY8AANI8sluPbmE/MAkxk0dTBEYMlYVBPTKg?= =?us-ascii?Q?QgqI7z/CbfrOunfKW7Xd/nKpM5tBHujJ39Q4XibfReD4MvhsTvUFVN3VIQLS?= =?us-ascii?Q?nHeOprNbdADKGjIBxLW2ZobjwPqjadFr6SyxRvPaoOVpEfokdwLDO+b3l+2t?= =?us-ascii?Q?DEUzxghWHcMnR4TXcpeDebdotipzALAOYJnuHocPDlekIlSGwKyMfXI1nIQQ?= =?us-ascii?Q?9LzespvRTCADbX/Ee54DP1RD5cAGqherkjmq4jmKwauEgx7fvjaJBJ8ZyQ0C?= =?us-ascii?Q?NW3tcHGQYtP1HKjKEEZxTdpW43sR1GjP6JgviZa8aV/tyzNHOzq3TAfKonGq?= =?us-ascii?Q?aM4ewZz3La77l0QYKskfkMSKLDatscRirqSTfajqT6xW2MZuFfqv3313pqpP?= =?us-ascii?Q?IK63SvkhXf67WXfXIK9mnzD+WcGHsHgo6MYJqliKxzgHhYg+HrOlBSE0maKS?= =?us-ascii?Q?1L2znsi36+c72gtpvgH21aZ7YXlJLW1NzPs8g8Kiue15oOE2L/FLHTULVE4N?= =?us-ascii?Q?j7eA/1YtSBSGHMFVpG5ZySIrmQKgVklskFoCI5FvHRCHMZSA+OXga+B/K4Lz?= =?us-ascii?Q?slHPck2t/GVS3FgXlCA9cQnZjgcC7DWF4TLLUl2WII8=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW3PR11MB4554.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bf26ce53-0d91-4f26-39b6-08d8a3764d54 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2020 16:59:36.9628 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9NuIVtkdTyrA1wB87ZLMvssMnyzj6IhCbCehJHOPsTR18z2wqvXMolQM/0Y4/3dUlWvdlV+rId1gveSAxhqWXA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB5106 Return-Path: erik.c.bjorge@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Erik Bjorge -----Original Message----- From: devel@edk2.groups.io On Behalf Of Nate DeSimo= ne Sent: Thursday, December 17, 2020 8:47 PM To: devel@edk2.groups.io Cc: Desimone, Ashley E ; Pandya, Puja ; Bret Barkelew ; Agyeman, Pri= nce ; Bjorge, Erik C Subject: [edk2-devel] [edk2-staging/EdkRepo] [PATCH] EdkRepo: Prevent envi= ronment variables from causing install failures If the following two environment variables in the global system scope: PIP_INDEX_URL PIP_TARGET It will breaks the EdkRepo installer's ability to place files into the Pyt= hon site-packages directory. To workaround this, the installer should tempo= rarily delete those environment variables. Cc: Ashley E Desimone Cc: Nate DeSimone Cc: Puja Pandya Cc: Bret Barkelew Cc: Prince Agyeman Cc: Erik Bjorge Signed-off-by: Nate DeSimone --- edkrepo_installer/EdkRepoInstaller/InstallWorker.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edkrepo_installer/EdkRepoInstaller/InstallWorker.cs b/edkrepo= _installer/EdkRepoInstaller/InstallWorker.cs index 679b4f4..0dadbbf 100644 --- a/edkrepo_installer/EdkRepoInstaller/InstallWorker.cs +++ b/edkrepo_installer/EdkRepoInstaller/InstallWorker.cs @@ -576,6 +576,8 @@ namespace TianoCore.EdkRepoInstaller Action ReportFailure =3D new Action(delegate () { FailureRepo= rted =3D true; }); Environment.SetEnvironmentVariable("PYTHONHOME", null); Environment.SetEnvironmentVariable("PYTHONPATH", null); + Environment.SetEnvironmentVariable("PIP_INDEX_URL", null); + Environment.SetEnvironmentVariable("PIP_TARGET", null); if (VendorCustomizer.Instance !=3D null) { VendorCustomizer.Instance.WriteToInstallLog =3D new Actio= n(InstallLogger.Log); -- 2.27.0.windows.1