alternative for github clone with submodules

Christopher Jones jonesc at hep.phy.cam.ac.uk
Thu May 7 15:46:32 UTC 2020



> On 7 May 2020, at 4:41 pm, macports at parvis.nl wrote:
> 
> 
>> On 2020-05-07, at 14:58, Christopher Jones <jonesc at hep.phy.cam.ac.uk <mailto:jonesc at hep.phy.cam.ac.uk>> wrote:
>> 
>> see
>> 
>> https://github.com/macports/macports-ports/blob/master/python/py-pytorch/Portfile#L92 <https://github.com/macports/macports-ports/blob/master/python/py-pytorch/Portfile#L92>
>> 
>> Chris
> 
> 
> thanks!
> 
> i had to add 'fetch.type git’ to Portfile to get it working.
> 
> but now destroot fails.
> 
> log:
> ----
> 
> make: Entering directory `/opt/local/var/macports/build/_usr_local_macports_hfsinspect_sysutils_hfsinspect/hfsinspect/work/hfsinspect-02e0853'
> + echo 'Installing hfsinspect in /usr/local'
> Installing hfsinspect in /usr/local
> + mkdir -p /usr/local/bin
> + install build/Darwin-x86_64/hfsinspect /usr/local/bin
> install: /usr/local/bin/hfsinspect: Operation not permitted
> make: *** [install] Error 71
> 
> 
> what should i do now?

Any reference to /usr/local is wrong, macports does not use that location. The port file needs to configure the build to install to ${prefix} (which in default installations points to /opt/local).

> 
> 
> 
> BTW: i tried to install py37-pytorch as a tutorial for me but it failed:
> distutils.errors.DistutilsError: the `allow-hosts` option is not supported when using pip to install requirements.
> Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-spaCy/py37-spaCy/work/spaCy-2.2.4" && /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 setup.py build_ext --inplace build -j8
> Exit code: 1
> Error: Failed to build py37-spaCy: command execution failed

Hmm, not seen that before..

Chris

> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20200507/07e506ed/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1930 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20200507/07e506ed/attachment-0001.bin>


More information about the macports-dev mailing list