install doc with python group
Joshua Root
jmr at macports.org
Tue Jul 11 12:44:56 UTC 2017
On 2017-7-10 22:45 , db wrote:
> Which is the proper way to install documentation with python group?
>
> This boilerplate works for the subport but not if I install the main port.
>
> post-destroot {
> set docdir ${prefix}/share/${subport}
> xinstall -d ${destroot}${docdir}
> xinstall -m 644 -W ${worksrcpath} \
> CHANGES.txt \
> LICENSE \
> README.rst \
> ${destroot}${docdir}
> }
>
> Here's an extract from the log.
>
> :debug:destroot Executing org.macports.destroot (py-setuptools_hg)
> :debug:destroot system: echo py-setuptools_hg is a stub port > /opt/local/var/macports/build/_opt_local_myports_python_py-setuptools_hg/py-setuptools_hg/work/destroot/opt/local/share/doc/py-setuptools_hg/README
> :debug:destroot Executing proc-post-org.macports.destroot-destroot-0
> :info:destroot xinstall: mkdir /opt/local/var/macports/build/_opt_local_myports_python_py-setuptools_hg/py-setuptools_hg/work/destroot/opt/local/share/py-setuptools_hg
> :error:destroot Failed to destroot py-setuptools_hg: xinstall: Unable to chdir to /opt/local/var/macports/build/_opt_local_myports_python_py-setuptools_hg/py-setuptools_hg/work/setuptools_hg-0.4, No such file or directory
> :debug:destroot Error code: NONE
> :debug:destroot Backtrace: xinstall: Unable to chdir to /opt/local/var/macports/build/_opt_local_myports_python_py-setuptools_hg/py-setuptools_hg/work/setuptools_hg-0.4, No such file or directory
> :debug:destroot while executing
> :debug:destroot "$post $targetname"
> :error:destroot See /opt/local/var/macports/logs/_opt_local_myports_python_py-setuptools_hg/py-setuptools_hg/main.log for details.
Only the subports like py27-setuptools_hg and py35-setuptools_hg are
supposed to install any files. py-setuptools_hg is a stub port, and as
such has no distfiles and thus no extracted sources.
- Josh
More information about the macports-dev
mailing list