<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>b.t.w. its also far from obvious (to me at least) why you have altered the port file in the way you have ? Whats you aim here… ?<div class=""><br class=""></div><div class="">Chris<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 2 Sep 2019, at 9:40 pm, Christopher Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk" class="">jonesc@hep.phy.cam.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">Your port file is incorrectly set up. Compare to the original</div><div class=""><br class=""></div><div class=""><a href="https://github.com/macports/macports-ports/blob/master/python/py-acme/Portfile" class="">https://github.com/macports/macports-ports/blob/master/python/py-acme/Portfile</a></div><div class=""><br class=""></div><div class="">you are missing the subport bits. This part is not optional, its part of how the python PG works. ${python.version} is only defined within each subport the PG sets up.</div><div class=""><br class=""></div><div class="">Chris</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 2 Sep 2019, at 9:10 pm, Bjarne D Mathiesen <<a href="mailto:macintosh@mathiesen.info" class="">macintosh@mathiesen.info</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I've got this :<br class=""><br class=""><a href="file:///Volumes/Bjarne/WebServer/MacPorts/newPorts" class="">file:///Volumes/Bjarne/WebServer/MacPorts/newPorts</a><br class=""><a href="rsync://rsync.macports.org/release/tarballs/ports.tar" class="">rsync://rsync.macports.org/release/tarballs/ports.tar</a> [default]<br class=""><br class="">in my sources.conf<br class=""><br class="">Now, if I put my py-acme Portfile<br class="">    <a href="https://macports.mathiesen.info/portfiles/python/py-acme/Portfile" class="">https://macports.mathiesen.info/portfiles/python/py-acme/Portfile</a><br class="">into my own port tree, I get this :<br class=""><br class="">#=> port -d sync<br class="">[standard stuff]...<br class="">Failed to parse file python/py-acme/Portfile: can't read<br class="">"python.version": no such variable<br class=""><br class="">Total number of ports parsed:<span class="Apple-tab-span" style="white-space:pre"> </span>1<br class="">Ports successfully parsed:<span class="Apple-tab-span" style="white-space:pre">    </span>0<br class="">Ports failed:<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>1<br class="">Up-to-date ports skipped:<span class="Apple-tab-span" style="white-space:pre">     </span>17<br class=""><br class="">+++<br class="">I've "rsync -a" the '_resources' directory into my ports tree.<br class=""><br class="">I have to explicitly set "python.version 37" in the Portfile in order<br class="">for macports to accept it.<br class=""><br class="">Am I doing something wrong here ?!?<br class="">The original macports portfile doesn't explicitly set this value.<br class=""><br class="">-- <br class="">Bjarne D Mathiesen<br class="">Korsør ; Danmark ; Europa<br class="">----------------------------------------------------------------------<br class="">denne besked er skrevet i et (næsten) M$-frit miljø<br class="">MacOS X 10.13.6 High Sierra :<br class="">   17" 2011 MacBook Pro ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3<br class="">   2012 Mac Pro ; 2 x 3.46GHz 6-Core Xeon ; 48GB<br class="">MacOS X 10.6.8 Snow Leopard :<br class="">   Mac Mini ; 2GHz Core 2 Duo (64 bit) ; 4GB (3GB actual) 667MHz<br class="">   Mac Mini ; 1.83GHz Core Duo (32 bit) ; 2GB 667Mhz<br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>