Bug 212950 - devel/py-pip: Doesn't build with python3 and docs option enable
Summary: devel/py-pip: Doesn't build with python3 and docs option enable
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-23 21:54 UTC by Loïc Bartoletti
Modified: 2018-01-10 05:13 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (python)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Loïc Bartoletti freebsd_committer freebsd_triage 2016-09-23 21:54:41 UTC
>sudo make -C /usr/ports/devel/py-pip PYTHON_VERSION=3.4
===>  License MIT accepted by the user
===>  Found saved configuration for py34-pip-8.0.2
===>   py34-pip-8.0.2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by py34-pip-8.0.2 for building
===>  Extracting for py34-pip-8.0.2
=> SHA256 Checksum OK for pypa-pip-8.0.2_GH0.tar.gz.
===>  Patching for py34-pip-8.0.2
===>  Applying FreeBSD patches for py34-pip-8.0.2
===>   py34-pip-8.0.2 depends on executable: sphinx-build - found
===>   py34-pip-8.0.2 depends on package: py34-setuptools34>0 - found
===>   py34-pip-8.0.2 depends on file: /usr/local/bin/python3.4 - found
===>  Configuring for py34-pip-8.0.2
running config
===>  Building for py34-pip-8.0.2
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'build_sphinx'
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/py-pip
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-pip
Comment 1 Reshad Patuck 2017-05-18 05:11:49 UTC
Docs seems to require py34-sphinx installed.

I tried with this python 3.6 it seems to work fine.
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-06-10 02:19:20 UTC
A commit references this bug:

Author: woodsb02
Date: Sat Jun 10 02:19:05 UTC 2017
New revision: 443059
URL: https://svnweb.freebsd.org/changeset/ports/443059

Log:
  [NEW] devel/py3-pip: Add Python 3.x version of this port

  PR:		219833
  PR:		212950

Changes:
  head/devel/Makefile
  head/devel/py-pip/Makefile
  head/devel/py3-pip/
  head/devel/py3-pip/Makefile
Comment 3 Ben Woods freebsd_committer freebsd_triage 2017-06-10 04:13:00 UTC
Hi Ibartoletti,
I have created new py3- ports to allow py3-pip to be build by the main FreeBSD package builders.
Whilst this solves the problem of py3-pip being able to build with Python>=3.5, it does not help with Python 3.3 or 3.4.

This is because building docs with devel/py3-pip has DOC_BUILD_DEPENDS on textproc/py3-sphinx, which has BUILD/RUN_DEPENDS on devel/py3-Jinja2.
According to the devel/py3-Jinja2 port, versions of Jinja2 > 2.9 are no longer compatible with versions of Python<3.5. Refer to PR215651: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215651#c2

bofh: are you aware if more recent versions of Jinja2 have fixed the build on Python 3.3 or 3.4?
Comment 4 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2017-06-10 20:34:15 UTC
(In reply to Ben Woods from comment #3)
Noops the build has not yet been fixed.
Comment 5 Walter Schwarzenfeld freebsd_triage 2018-01-10 04:09:37 UTC
make FLAVOR=py34 works fine. Overcome by events.