all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob e0959c6e792f428065bf5be25e32af16422bc8c7 5126 bytes (raw)
name: gnu/packages/python-commencement.scm 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2014, 2015, 2017 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2017, 2018, 2019, 2021 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018, 2019, 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020 Timothy Sample <samplet@ngyro.com>
;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@disroot.org>
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Lars-Dominik Braun <lars@6xq.net>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages python-commencement)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module (guix build-system trivial)
  #:use-module (gnu packages)
  #:use-module (gnu packages python)
  #:use-module (gnu packages python-build)
  #:use-module (gnu packages python-xyz)
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-26))

(define-public python-toolchain
  (package
    (name "python-toolchain")
    (version (package-version python))
    (source #f)
    (build-system trivial-build-system)
    (arguments
     '(#:modules ((guix build union))
       #:builder (begin
                   (use-modules (ice-9 match)
                                (srfi srfi-1)
                                (srfi srfi-26)
                                (guix build union))

                   (let ((out (assoc-ref %outputs "out")))
                     (union-build out (filter-map (match-lambda
                                                ((_ . directory) directory))
                                              %build-inputs))
                     #t))))
    (inputs
     `(("python" ,python-wrapper)
       ("python-setuptools" ,python-setuptools)
       ("python-pip" ,python-pip)))
    (native-search-paths
     (package-native-search-paths python))
    (search-paths
     (package-search-paths python))
    (license (package-license python))
    (synopsis "Python toolchain")
    (description
     "Python toolchain including Python itself, setuptools and pip.  Use this
package if you need a minimal Python toolchain instead of just the
interpreter.")
    (home-page (package-home-page python))))

(define-public python2-toolchain
  (package
    (name "python2-toolchain")
    (version (package-version python-2))
    (source #f)
    (build-system trivial-build-system)
    (arguments
     '(#:modules ((guix build union))
       #:builder (begin
                   (use-modules (ice-9 match)
                                (srfi srfi-1)
                                (srfi srfi-26)
                                (guix build union))

                   (let ((out (assoc-ref %outputs "out")))
                     (union-build out (filter-map (match-lambda
                                                ((_ . directory) directory))
                                              %build-inputs))
                     #t))))
    (inputs
     `(("python" ,python-2)
       ("python2-setuptools" ,python2-setuptools)
       ("python2-pip" ,python2-pip)))
    (native-search-paths
     (package-native-search-paths python-2))
    (search-paths
     (package-search-paths python-2))
    (license (package-license python-2))
    (synopsis "Python toolchain")
    (description
     "Python toolchain including Python itself, setuptools and pip.  Use this
package if you need a minimal Python toolchain instead of just the
interpreter.")
    (home-page (package-home-page python-2))))

;; Python 3 toolchain for python-build-system. We cannot use python-toolchain
;; here, since we’d need to bootstrap python-pip somehow.
(define-public python-toolchain-for-build
  (package
    (inherit python-toolchain)
    (name "python-toolchain-for-build")
    (inputs
      `(("python" ,python-wrapper)
        ("python-setuptools" ,python-setuptools)))))

(define-public python2-toolchain-for-build
  (package
    (inherit python2-toolchain)
    (name "python2-toolchain-for-build")
    (inputs
      `(("python" ,python-2)
        ("python2-setuptools" ,python2-setuptools)))))


debug log:

solving e0959c6e79 ...
found e0959c6e79 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.