~ruther/guix-local

89e9a8fc8b99218b42133d5c9e72b2118327419d — Sharlatan Hellseher a month ago ac1d573
gnu: clang-python-bindings: Switch to pyproject.

* gnu/packages/llvm.scm (clang-python-bindings):
[build-system]: Switch to pyproject-build-system.
[arguments] <phases>: Remove 'create-setup-py.

Change-Id: Ib309578926fd3e87cdd68a97b27df0b4d721d3ee
1 files changed, 2 insertions(+), 10 deletions(-)

M gnu/packages/llvm.scm
M gnu/packages/llvm.scm => gnu/packages/llvm.scm +2 -10
@@ 31,6 31,7 @@
;;; Copyright © 2025 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2025 Liam Hupfer <liam@hpfr.net>
;;; Copyright © 2025 dan <i@dan.games>
;;; Copyright © 2026 Sharlatan Hellseher <sharlatanus@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;


@@ 1723,7 1724,7 @@ existing compilers together.")
  (package
    (inherit clang)
    (name "python-clang")
    (build-system python-build-system)
    (build-system pyproject-build-system)
    (outputs '("out"))
    (arguments
     (list


@@ 1731,15 1732,6 @@ existing compilers together.")
                   (add-before 'build 'change-directory
                     (lambda _
                       (chdir "bindings/python")))
                   (add-before 'build 'create-setup-py
                     (lambda _
                       ;; Generate a basic "setup.py", enough so it can be
                       ;; built and installed.
                       (with-output-to-file "setup.py"
                         (lambda ()
                           (format #true "from setuptools import setup
setup(name=\"clang\", version=\"~a\", packages=[\"clang\"])\n"
                                   #$(package-version this-package))))))
                   (add-before 'build 'set-libclang-file-name
                     (lambda* (#:key inputs #:allow-other-keys)
                       ;; Record the absolute file name of libclang.so.