[MacPorts] #54868: py-ipython: missing dependencies on py-typing and py-pathlib2 for some python versions
MacPorts
noreply at macports.org
Tue Sep 19 06:46:53 UTC 2017
#54868: py-ipython: missing dependencies on py-typing and py-pathlib2 for some
python versions
----------------------+------------------------
Reporter: Ionic | Owner: lpsinger
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: haspatch | Port: py-ipython
----------------------+------------------------
Following error occurred when installing `py34-ipykernel` (as a dependency
of something else):
{{{
:info:build Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.rsync.ionic
.de_release_ports_python_py-ipykernel/py34-ipykernel/work/ipykernel-4.6.1"
&&
/opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4
setup.py --no-user-cfg build
:debug:build system: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.rsync.ionic
.de_release_ports_python_py-ipykernel/py34-ipykernel/work/ipykernel-4.6.1"
&&
/opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4
setup.py --no-user-cfg build
:info:build Traceback (most recent call last):
:info:build File "setup.py", line 91, in <module>
:info:build from ipykernel.kernelspec import write_kernel_spec,
make_ipkernel_cmd, KERNEL_NAME
:info:build File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.rsync.ionic
.de_release_ports_python_py-
ipykernel/py34-ipykernel/work/ipykernel-4.6.1/ipykernel/__init__.py", line
2, in <module>
:info:build from .connect import *
:info:build File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.rsync.ionic
.de_release_ports_python_py-
ipykernel/py34-ipykernel/work/ipykernel-4.6.1/ipykernel/connect.py", line
13, in <module>
:info:build from IPython.core.profiledir import ProfileDir
:info:build File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4
/site-packages/IPython/__init__.py", line 55, in <module>
:info:build from .terminal.embed import embed
:info:build File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4
/site-packages/IPython/terminal/embed.py", line 16, in <module>
:info:build from IPython.terminal.interactiveshell import
TerminalInteractiveShell
:info:build File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4
/site-packages/IPython/terminal/interactiveshell.py", line 32, in <module>
:info:build from .debugger import TerminalPdb, Pdb
:info:build File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4
/site-packages/IPython/terminal/debugger.py", line 6, in <module>
:info:build from IPython.core.completer import IPCompleter
:info:build File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4
/site-packages/IPython/core/completer.py", line 132, in <module>
:info:build from typing import Iterator, List, Tuple, Iterable, Union
:info:build ImportError: No module named 'typing'
:info:build Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_macports.rsync.ionic
.de_release_ports_python_py-ipykernel/py34-ipykernel/work/ipykernel-4.6.1"
&&
/opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4
setup.py --no-user-cfg build
:info:build Exit code: 1
}}}
Turns out: that's right.
According to
[https://github.com/ipython/ipython/blob/d86648c5decf384cf7182b7214d01429cf9e6047/setup.py#L203
ipython's setup.py file], we need to depend upon `py-pathlib2` for python
3.3 and `py-typing` for python 3.4 and below.
I'll attach a patch for you to review. If you're okay with it, I can also
commit it.
--
Ticket URL: <https://trac.macports.org/ticket/54868>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list