python ports -- setuptools requiring the pbr module and failing on denied network access?
Matthew Seaman
matthew at FreeBSD.org
Sat Sep 22 14:29:52 UTC 2018
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:
=======================<phase: configure >============================
===> 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 "<string>", line 1, in <module>
File "setup.py", line 26, in <module>
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20180922/818e3868/attachment.sig>
More information about the freebsd-ports
mailing list