<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word;line-break:after-white-space"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Thanks Ken.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Actually I checked brew and they haven't got a formula for TensorFlow (at least at the moment).</div> <div id="bloop_sign_1513634626825751040" class="bloop_sign"><br></div><p class="airmail_on">On 18 December 2017 at 22:57:42, Cunningham Ken (<a href="mailto:ken.cunningham.webuse@gmail.com">ken.cunningham.webuse@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div style="word-wrap:break-word"><div></div><div>


<base href="x-msg://1/">
<title></title>



FYI, I recall homebrew has tensorflow, so you might get some hints
looking at their formula.
<div><br></div>
<div>Marius was taking this on a few months ago as well, so might
have some thoughts.</div>
<div><br></div>
<div>Ken</div>
<div><br></div>
<div><br>
<div>
<div>On 2017-12-18, at 1:52 PM, Enrico Maria Crisostomo
wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="font-family:Menlo,Arial;word-wrap:break-word">
<div id="bloop_customfont" style="font-family:Menlo,Arial;font-size:13px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
Hi,</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
I’m trying to create a port for TensorFlow and I have already
accumulated quite a number of doubts in just a couple of hours I've
been working on it.</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
First of all, I realised (late) that TensorFlow (and some of its
dependencies) is built as a wheel package (a .whl file), and as
such it gets uploaded to the Python Package Index: ​<a href="https://pypi.python.org/pypi/tensorflow/1.4.1" style="font-family:Menlo,Arial">https://pypi.python.org/pypi/tensorflow/1.4.1</a>.
 whl files are meant to be installed with pip, so my current
port file does the following:</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial">
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
  if {${name} ne ${subport}} {</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
    build {</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
    }</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
    destroot.cmd      
 pip-${python.branch}</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
    destroot.pre_args</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
    destroot.args       \</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
        install \</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
        --no-cache-dir \</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
        --no-dependencies \</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
        --target ${destroot}${python.pkgd}
\</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
       
${worksrcpath}/${distname}${extract.suffix}</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
    destroot.post_args</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
    livecheck.type      none</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
  }</span></div>
</div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
You can see the PR here: <a href="https://github.com/macports/macports-ports/pull/1131" style="font-family:Menlo,Arial">https://github.com/macports/macports-ports/pull/1131</a></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
The port apparently work, but I'd like to submit this port for
review for the following reasons:</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
  * I'm not sure we should install a whl file this way,
invoking `pip`.</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
  * I had to redefine `master_sites` and `checksums` for each
version of Phyton.</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
  * I had to redefine the `extract` properties to skip
extraction and just copy the downloaded file into
`${worksrcpath}`:</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
      extract.suffix    
 .whl</span></div>
<div style="font-family:Menlo,Arial">
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
      extract.cmd        
cp</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
      extract.pre_args</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
      extract.post_args  
${worksrcpath}</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
      extract.mkdir      
yes</span></div>
</div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
  * Is there a better idiom to refer to the
currently-installed `pip`?</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
      destroot.cmd      
 pip-${python.branch}</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
  * Is there a better idiom to refer to the Python site
packages directory in the staging area?</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
      ${destroot}${python.pkgd}</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
Finally, I'm wondering whether this is a good idea at all. 
I've grep-ed the ports and I saw no other whl file installed this
way.</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
If you can have a look at the PR I will appreciate any feedback and
insight.</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<br style="font-family:Menlo,Arial"></span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
Cheers,</span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
-- </span></div>
<div style="font-family:Menlo,Arial"><span class="Apple-style-span" style="border-collapse:separate;font-family:Menlo,Arial;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
Enrico</span></div>
</div>
</blockquote>
</div>
<br></div>


</div></div></span></blockquote></body></html>