[MacPorts] #59179: py-tensorflow*: copy version 1 into new version 1 ports
MacPorts
noreply at macports.org
Sat Oct 5 16:51:39 UTC 2019
#59179: py-tensorflow*: copy version 1 into new version 1 ports
-------------------------+---------------------------
Reporter: blair | Owner: blair
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: py-tensorflow
-------------------------+---------------------------
I'm using https://github.com/tensorflow/tfjs and there's an optimization
where one can copy the native compiled tensorflow shared libraries into a
Node project, see https://github.com/tensorflow/tfjs/tree/master/tfjs-node
#optional-build-optimal-tensorflow-from-source .
tfjs is still on version 1.x.y and it appears that it uses shared
libraries from Tensorflow 1.x.y:
{{{
$ ls -l node_modules/@tensorflow/tfjs-node/deps/lib/
total 241088
-r-xr-xr-x 1 blair staff 212756132 Dec 31 1999 libtensorflow.1.14.0.dylib
lrwxr-xr-x 1 blair staff 26 Oct 5 08:16 libtensorflow.1.dylib ->
libtensorflow.1.14.0.dylib
lrwxr-xr-x 1 blair staff 21 Oct 5 08:16 libtensorflow.dylib ->
libtensorflow.1.dylib
-r-xr-xr-x 1 blair staff 27947528 Dec 31 1999
libtensorflow_framework.1.14.0.dylib
lrwxr-xr-x 1 blair staff 36 Oct 5 08:16
libtensorflow_framework.1.dylib -> libtensorflow_framework.1.14.0.dylib
lrwxr-xr-x 1 blair staff 31 Oct 5 08:16
libtensorflow_framework.dylib -> libtensorflow_framework.1.dylib
}}}
However, the new py-tensorsor makes version 2 dylibs:
{{{
$ port contents py37-tensorflow | grep libtensorflow_framework
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/tensorflow_core/libtensorflow_framework.2.0.0.dylib
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/tensorflow_core/libtensorflow_framework.2.dylib
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/tensorflow_core/libtensorflow_framework.dylib
}}}
I want to copy py-tensor* into version 1 ports.
I'll do the work, however, what should we name `py-tensorboard`, `py-
tensorflow` and `py-tensorflow_estimator`? Just add a `1` at the end? It
doesn't seem that clean, I would prefer 1.x or something. We're on 1.14
now and 1.15 will come out soon.
Thoughts?
BTW, I'll do the upgrade work to 1.15 when it's released.
--
Ticket URL: <https://trac.macports.org/ticket/59179>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list