[jhalfs] 02/02: BLFS: allow to use pip3 with destdir
"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Sun, 02 Feb 2025 18:32:55 +0000
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <[email protected]> |
This is an automated email from the git hooks/post-receive script. git pushed a commit to branch trunk in repository jhalfs. commit 76ee73177126fb9fee12059a45a33b62c0e50d6c Author: Pierre Labastie <[email protected]> AuthorDate: Sun Feb 2 19:30:09 2025 +0100 BLFS: allow to use pip3 with destdir This was not done, and it was necessary to add manually --root $PKG_DEST. NOw we add it automatically, and we also add -I (--ignore-installed) in case the package is already present on the system. --- BLFS/xsl/scripts.xsl | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl index d7ecd9b..0bf4348 100644 --- a/BLFS/xsl/scripts.xsl +++ b/BLFS/xsl/scripts.xsl @@ -1012,7 +1012,32 @@ DESTDIR=$PKG_DEST ninja</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:when> - <xsl:otherwise> <!-- no make nor ninja in this string --> + <xsl:when test="contains($outputstring,'pip3 install')"> + <xsl:choose> + <xsl:when test="not(starts-with($outputstring,'pip3 install'))"> + <xsl:call-template name="outputpkgdest"> + <xsl:with-param name="outputstring" + select="substring-before($outputstring,'pip3 install')"/> + </xsl:call-template> + <xsl:call-template name="outputpkgdest"> + <xsl:with-param + name="outputstring" + select="substring-after($outputstring, + substring-before($outputstring,'pip3 install'))"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:text> +pip3 install -I --root $PKG_DEST</xsl:text> + <xsl:call-template name="outputpkgdest"> + <xsl:with-param + name="outputstring" + select="substring-after($outputstring,'pip3 install')"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> <!-- no make nor ninja nor pip3 in this string --> <xsl:choose> <xsl:when test="contains($outputstring,'>/') and not(contains(substring-before($outputstring,'>/'),' /'))"> -- To stop receiving notification emails like this one, please contact the administrator of this repository. -- http://lists.linuxfromscratch.org/sympa/info/alfs-discuss Unsubscribe: See the above information page