[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: Add python-debug.
From: |
Ludovic Courtès |
Subject: |
01/02: gnu: Add python-debug. |
Date: |
Thu, 29 Mar 2018 09:17:40 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 9c3f2c2e83e0970173fbbf77f699e2c325046daa
Author: Ludovic Courtès <address@hidden>
Date: Thu Mar 29 13:39:40 2018 +0200
gnu: Add python-debug.
Suggested by Pjotr Prins <address@hidden>.
* gnu/packages/python.scm (python-debug): New variable.
---
gnu/packages/python.scm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 148cfb8..9e038ef 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -401,6 +401,24 @@ data types.")
("openssl" ,openssl)
("zlib" ,zlib)))))
+(define-public python-debug
+ (package
+ (inherit python)
+ (name "python-debug")
+ (outputs '("out" "debug"))
+ (build-system gnu-build-system)
+ (arguments
+ (substitute-keyword-arguments (package-arguments python)
+ ((#:configure-flags flags '())
+ `(cons "--with-pydebug" ,flags))))
+ (synopsis
+ "High-level, dynamically-typed programming language (for debugging)")
+ (description
+ "This variant of Python provides an interpreter built with
address@hidden to help develop and debug extensions. See
address@hidden://pythonextensionpatterns.readthedocs.io/en/latest/debugging/debug.html},
+for more information.")))
+
(define* (wrap-python3 python
#:optional
(name (string-append (package-name python) "-wrapper")))