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:

=======================<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



--
Regards,
Ruslan

T.O.S. Of Reality
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to