[MacPorts] #57767: py36-graph-tool uses incorrect python version 2.7
MacPorts
noreply at macports.org
Wed Dec 12 15:39:53 UTC 2018
#57767: py36-graph-tool uses incorrect python version 2.7
---------------------+-----------------------------
Reporter: ssllmit | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Keywords: | Port: py36-graph-tool
---------------------+-----------------------------
{{{py36-graph-tool}}} uses the incorrect python version, default to v. 2.7
in its port file, which results in incorrect dependencies during the
build.
First, clean everything and set {{{python}}} to use v. 3.6:
{{{
sudo port clean --all py36-graph-tool,
sudo port select --set python python36
hash -r
}}}
Confirm:
{{{
$ python --version
Python 3.6.7
}}}
An install of {{{py36-graph-tool}}} gets the wrong python version (default
v. 2.7):
{{{
sudo port -pN install py36-graph-tool
---> Computing dependencies for py36-graph-tool
---> Dependencies to be installed: boost cgal
---> Fetching archive for boost
---> Attempting to fetch
boost-1.66.0_3+no_single+no_static+python27.darwin_17.x86_64.tbz2 from
https://packages.macports.org/boost
}}}
This issue appears to go beyond {{{py36-graph-tool}}} because {{{boost}}}
also shows the same dependency issue:
{{{
port list depof:boost
bzip2 @1.0.6 archivers/bzip2
expat @2.2.6 textproc/expat
icu @58.2 devel/icu
libiconv @1.15 textproc/libiconv
python27 @2.7.15 lang/python27
zlib @1.2.11 archivers/zlib
}}}
I confirm this issue on a separate system with a newly installed Macports,
and do not believe this is a local configuration issue.
FWIW, I'm trying to track down a segmentation fault with
{{{gt.graph_draw}}} that I hope is related to this build problem…
{{{
gt.graph_draw(g)
Segmentation fault: 11
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57767>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list