From owner-freebsd-ports@freebsd.org Fri Apr 28 09:06:20 2017 Return-Path: Delivered-To: freebsd-ports@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 C5B09D530DE for ; Fri, 28 Apr 2017 09:06:20 +0000 (UTC) (envelope-from honzhan@microsoft.com) Received: from APC01-PU1-obe.outbound.protection.outlook.com (mail-pu1apc01on0107.outbound.protection.outlook.com [104.47.126.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1175C1732 for ; Fri, 28 Apr 2017 09:06:19 +0000 (UTC) (envelope-from honzhan@microsoft.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bY/b3aAwjHsu8YjM5a9W+rUEmY9FVzJjD6tqbjXAkgU=; b=O5qFNQ+hjmoimGQHDBpdwaEJvgKdLnXk5RMC794F+Ap7atjfYY/Dbc7ewTYNI8pb++V60vLyJG4WDBJKNAm5JLdUvNaO5Gbh+AkGpRfAu4TKUcXESpiUPmHWtMTjV1SiHuCKb4WEd1hmlD/woAA1FyzxZfGe8rGJwOXXjr4ea10= Received: from HK2P15301MB0003.APCP153.PROD.OUTLOOK.COM (10.170.151.145) by HK2P15301MB0002.APCP153.PROD.OUTLOOK.COM (10.170.151.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.0; Fri, 28 Apr 2017 09:06:15 +0000 Received: from HK2P15301MB0003.APCP153.PROD.OUTLOOK.COM ([10.170.151.145]) by HK2P15301MB0003.APCP153.PROD.OUTLOOK.COM ([10.170.151.145]) with mapi id 15.01.1075.003; Fri, 28 Apr 2017 09:06:15 +0000 From: Hongjiang Zhang To: "freebsd-ports@freebsd.org" Subject: How to call easy_install argparse after installation Thread-Topic: How to call easy_install argparse after installation Thread-Index: AdK//f6S+4XcnChLRE+pq8THZV9vhQ== Date: Fri, 28 Apr 2017 09:06:15 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=honzhan@microsoft.com; x-originating-ip: [2404:f801:9000:19::61] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HK2P15301MB0002; 7:0okkLzFSy1GGfqHJmKXZQF1DD6CRdBVhL03Dr/srtYobwR40pjuGuErUJq2Zk199acV8Wbm0KBExJkabRmXFrw38rUXnVzLg1el+A6CKc1W2uj8imduSOpZ5YRDiaVD4eBx9pI/eahadAeLa7Y6/OKoaf7mWtZTb5pDw7OzeVEaYWp8rK82wYPX45i4PB7Q//c+HPy238pyrGkbS8Rp6ERM469QpbRCxCyVvqSOAXDy9h1WwwFW/pKiZYdVoEqs9NbnPTKK0w7ums6HOYcjr2OecGdnfoKCO03MA3V/ykZq5BDlLuQHuUT7ZaAkZ+kVBM4W+Tjjvvr5Rk/xfLTyYiQ5inDYyzQwXKIf1+sJLc6Y= x-ms-office365-filtering-correlation-id: da2b52e8-baa4-48f4-4b99-08d48e15d350 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075); SRVR:HK2P15301MB0002; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(48706222282353)(21748063052155); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041248)(201703131423075)(201703061421075)(201703161042150)(20161123560025)(20161123558100)(20161123564025)(20161123562025)(20161123555025)(6042181)(6072148); SRVR:HK2P15301MB0002; BCL:0; PCL:0; RULEID:; SRVR:HK2P15301MB0002; x-forefront-prvs: 029174C036 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(53754006)(54896002)(10090500001)(5640700003)(2501003)(38730400002)(55016002)(189998001)(5005710100001)(2906002)(6306002)(33656002)(790700001)(102836003)(2900100001)(6116002)(10290500003)(74316002)(25786009)(7736002)(86612001)(2351001)(7696004)(6436002)(77096006)(6506006)(50986999)(5630700001)(86362001)(8990500004)(54356999)(3280700002)(5660300001)(3660700001)(8936002)(6916009)(8676002)(122556002)(81166006)(53936002)(9686003)(110136004)(21314002); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2P15301MB0002; H:HK2P15301MB0003.APCP153.PROD.OUTLOOK.COM; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Apr 2017 09:06:15.0369 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2P15301MB0002 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2017 09:06:20 -0000 Hi all, I'm trying to create a new ports app, which is a python application and dep= ends on argparse. For python 2.7, argparse is builtin. Unfortunately, when the app is starting, it complains: pkg_resources.DistributionNotFound: The 'argparse' distribution was not fou= nd and is required by XXX According to the argparse document, the fix is one of the followings. My qu= estion is how can I invoke "easy_install argparse" in my Makefile? By the w= ay, argparse has already been removed from ports. 1. python setup.py install 2. easy_install argparse 3. pip install argparse 4. putting argparse.py in some directory listed in sys.path should also = work Thanks Hongjiang Zhang