From owner-freebsd-ports@freebsd.org Sat Sep 22 16:18:17 2018 Return-Path: Delivered-To: freebsd-ports@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 41F52109C38C for ; Sat, 22 Sep 2018 16:18:17 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward106p.mail.yandex.net (forward106p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A690E78499; Sat, 22 Sep 2018 16:18:16 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from mxback10o.mail.yandex.net (mxback10o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::24]) by forward106p.mail.yandex.net (Yandex) with ESMTP id 0E2262D83585; Sat, 22 Sep 2018 19:18:06 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback10o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id XAQsfiQPLa-I5LmwqoO; Sat, 22 Sep 2018 19:18:06 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1537633086; bh=buuFthrTXMDk1l5B7XRM0+MhO08wH5Ydoq9QlYbah3M=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=XrKtS/7OSZZ0kNgmNk83bgEaoJ7Pwifr0KFjbMw8XB15si5LFWYUtMjW/NKpYj7MI E1FoTyM2JGiTDsMfrFg5lwzZ4yHutju3xz3v5jmKqLJ5zGnJG+HklAJd7gl5I/GZsM dz5aTnKg+zdIhwm2ShPVhKEzaVIdNOYAK8Axy2uw= Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id JNPxVmECau-I5uqKdx6; Sat, 22 Sep 2018 19:18:05 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1537633085; bh=buuFthrTXMDk1l5B7XRM0+MhO08wH5Ydoq9QlYbah3M=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=TM+9PzLSi46TDxuDgCZp1qil2Uu/6lIN96gukDOVGUt/BodyaLd3YPZzqUeaKNAry zn9U44/bGPaHuq4jJbUNBc53JdrFlsW7CetWIB+dsoXwVJbxohIoxurbMwzdXy4Kjw A6/6bJllorFNR4pUlF9IvrpIOFmLiD9GimLS301c= Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.ru Subject: Re: python ports -- setuptools requiring the pbr module and failing on denied network access? To: Matthew Seaman , FreeBSD Ports ML References: <82eb980e-f1a7-b840-2f3a-378ad1166257@FreeBSD.org> From: Ruslan Makhmatkhanov Message-ID: Date: Sat, 22 Sep 2018 19:13:53 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: <82eb980e-f1a7-b840-2f3a-378ad1166257@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Sep 2018 16:18:17 -0000 This one should work: http://dpaste.com/0P2SBMM.txt but it wouldn't, because of pbr's dependency on broken devel/py-pip (it requires previous version of dns/py-idna, that we no more have in ports tree). As for your question: pbr is set in molecule's setup.py as setup_depends, so it should go to BUILD_DEPENDS in Makefile. Also make sure that you list all the dependencies from the molecule's requirements.txt as RUN_DEPENDS. Cheers. Matthew Seaman wrote on 9/22/18 5:29 PM: > So, I've been working on porting molecule > (https://pypi.org/project/molecule/), and I have a port that /almost/ > works. I can compile and run molecule from my shell prompt using the > port. Everything seems fine. > > Except when I try and build the port inside poudriere. It seems that > python setuptools is requiring the pbr module at some particularly early > stage, and, well, it's not pretty: > > =================================================== > ===> py27-molecule-2.18.1 depends on package: py27-setuptools>0 - found > ===> py27-molecule-2.18.1 depends on file: /usr/local/bin/python2.7 - > found > ===> py27-molecule-2.18.1 depends on file: /usr/local/bin/ccache - found > ===> Configuring for py27-molecule-2.18.1 > Download error on https://pypi.org/simple/pbr/: [Errno 65] No route to > host -- Some packages may not be found! > Couldn't find index page for 'pbr' (maybe misspelled?) > Download error on https://pypi.org/simple/: [Errno 65] No route to host > -- Some packages may not be found! > No local packages or working download links found for pbr > Traceback (most recent call last): > File "", line 1, in > File "setup.py", line 26, in > setup_requires=['pbr'] > File "/usr/local/lib/python2.7/site-packages/setuptools/__init__.py", > line 130, in setup > _install_setup_requires(attrs) > File "/usr/local/lib/python2.7/site-packages/setuptools/__init__.py", > line 125, in _install_setup_requires > dist.fetch_build_eggs(dist.setup_requires) > File "/usr/local/lib/python2.7/site-packages/setuptools/dist.py", line > 514, in fetch_build_eggs > replace_conflicting=True, > File > "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line > 773, in resolve > replace_conflicting=replace_conflicting > File > "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line > 1056, in best_match > return self.obtain(req, installer) > File > "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line > 1068, in obtain > return installer(requirement) > File "/usr/local/lib/python2.7/site-packages/setuptools/dist.py", line > 581, in fetch_build_egg > return cmd.easy_install(req) > File > "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", > line 670, in easy_install > raise DistutilsError(msg) > distutils.errors.DistutilsError: Could not find suitable distribution > for Requirement.parse('pbr') > *** Error code 1 > > So setuptools apparently tries to go to the net and download pbr, which > poudriere of course denies. Adding the devel/py-pbr port as any of a > PATCH_, BUILD_ or RUN_DEPENDS doesn't help. > > Any clues gratefully received. > > Cheers, > > Matthew > -- Regards, Ruslan T.O.S. Of Reality