[arch-commits] Commit in python-scikit-build/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 18:15:14 UTC 2020


    Date: Monday, November 9, 2020 @ 18:15:14
  Author: foutrelis
Revision: 747897

archrelease: copy trunk to community-staging-any

Added:
  python-scikit-build/repos/community-staging-any/
  python-scikit-build/repos/community-staging-any/PKGBUILD
    (from rev 747896, python-scikit-build/trunk/PKGBUILD)
  python-scikit-build/repos/community-staging-any/issue458.patch
    (from rev 747896, python-scikit-build/trunk/issue458.patch)

----------------+
 PKGBUILD       |   31 +++++++++++++++++++++++++++++++
 issue458.patch |   29 +++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

Copied: python-scikit-build/repos/community-staging-any/PKGBUILD (from rev 747896, python-scikit-build/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 18:15:14 UTC (rev 747897)
@@ -0,0 +1,31 @@
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Martino Pilia <martino.pilia at gmail.com>
+# Contributor: Ben Greiner <code-arch at bnavigator.de>
+
+# TODO: think about including check() after #460 and #469 are fixed upstream
+
+pkgname=python-scikit-build
+pkgver=0.11.1
+pkgrel=2
+pkgdesc="Improved build system generator for CPython C, C++, Cython and Fortran extensions"
+arch=('any')
+url="https://scikit-build.org"
+license=('MIT')
+depends=('cmake' 'python-distro' 'python-wheel')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/scikit-build/scikit-build/archive/${pkgver}.tar.gz")
+sha256sums=('25f040b04ae0c8473fe57af009c7c83bd9122a88b8ef5b19dd4805812fe03d24')
+
+build() {
+  cd "${srcdir}/scikit-build-${pkgver}"
+
+  python setup.py build_ext --inplace
+  python setup.py build
+}
+
+package() {
+  cd "${srcdir}/scikit-build-${pkgver}"
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: python-scikit-build/repos/community-staging-any/issue458.patch (from rev 747896, python-scikit-build/trunk/issue458.patch)
===================================================================
--- community-staging-any/issue458.patch	                        (rev 0)
+++ community-staging-any/issue458.patch	2020-11-09 18:15:14 UTC (rev 747897)
@@ -0,0 +1,29 @@
+diff -urN scikit-build-0.10.0.orig/requirements.txt scikit-build-0.10.0/requirements.txt
+--- scikit-build-0.10.0.orig/requirements.txt	2020-02-04 13:44:07.340306400 +0100
++++ scikit-build-0.10.0/requirements.txt	2020-02-04 13:45:00.054455198 +0100
+@@ -1,3 +1,4 @@
+ wheel>=0.29.0
+ setuptools>=28.0.0
+-packaging
+\ Brak znaku nowej linii na końcu pliku
++packaging
++distro
+diff -urN scikit-build-0.10.0.orig/skbuild/platform_specifics/linux.py scikit-build-0.10.0/skbuild/platform_specifics/linux.py
+--- scikit-build-0.10.0.orig/skbuild/platform_specifics/linux.py	2020-02-04 13:44:07.343639785 +0100
++++ scikit-build-0.10.0/skbuild/platform_specifics/linux.py	2020-02-04 13:45:35.738340612 +0100
+@@ -1,5 +1,6 @@
+ """This module defines object specific to Linux platform."""
+ 
++import distro
+ import platform
+ import sys
+ import textwrap
+@@ -24,7 +25,7 @@
+         """
+         # gentoo, slackware: Compiler is available by default.
+ 
+-        distribution_name = platform.linux_distribution()[0]
++        distribution_name = distro.id()
+         cmd = ""
+         if distribution_name in [
+                 'debian', 'Ubuntu', 'mandrake', 'mandriva']:



More information about the arch-commits mailing list