[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: python-setuptools-scm-git-archive: Don't ins
From: |
guix-commits |
Subject: |
branch master updated: gnu: python-setuptools-scm-git-archive: Don't install duplicate egginfo. |
Date: |
Mon, 13 Dec 2021 18:15:24 -0500 |
This is an automated email from the git hooks/post-receive script.
mbakke pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new bdcfe80 gnu: python-setuptools-scm-git-archive: Don't install
duplicate egginfo.
bdcfe80 is described below
commit bdcfe80b41e3d973591272036461c263d3713b22
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Dec 14 00:13:30 2021 +0100
gnu: python-setuptools-scm-git-archive: Don't install duplicate egginfo.
* gnu/packages/python-xyz.scm
(python-setuptools-scm-git-archive)[arguments]:
New field.
---
gnu/packages/python-xyz.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f4903b8..270d665 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19786,6 +19786,16 @@ services.")
(base32
"1nii1sz5jq75ilf18bjnr11l9rz1lvdmyk66bxl7q90qan85yhjj"))))
(build-system python-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'dont-install-defunct-egginfo
+ (lambda _
+ ;; When a ".git" directory is missing, the setup.py
+ ;; script invokes setuptools.setup twice, once with
+ ;; "0" as the version. Prevent that.
+ (substitute* "setup.py"
+ (("if not isdir\\('\\.git'\\):")
+ "if False:")))))))
(native-inputs
(list python-pytest))
(propagated-inputs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: python-setuptools-scm-git-archive: Don't install duplicate egginfo.,
guix-commits <=