[arch-commits] Commit in (5 files)
Andrzej Giniewicz
aginiewicz at archlinux.org
Tue Feb 4 12:57:26 UTC 2020
Date: Tuesday, February 4, 2020 @ 12:57:26
Author: aginiewicz
Revision: 562030
python-scikit-build: moving from AUR
Added:
python-scikit-build/
python-scikit-build/repos/
python-scikit-build/trunk/
python-scikit-build/trunk/PKGBUILD
python-scikit-build/trunk/issue458.patch
----------------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
issue458.patch | 29 +++++++++++++++++++++++++++++
2 files changed, 69 insertions(+)
Added: python-scikit-build/trunk/PKGBUILD
===================================================================
--- python-scikit-build/trunk/PKGBUILD (rev 0)
+++ python-scikit-build/trunk/PKGBUILD 2020-02-04 12:57:26 UTC (rev 562030)
@@ -0,0 +1,40 @@
+# 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.10.0
+pkgrel=3
+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"
+ "issue458.patch")
+sha256sums=('2beec252813b20327072c15e9d997f15972aedcc6a130d0154979ff0fdb1b010'
+ '4e1ebdef1fc08763772c767ebad2f7fee2513cad084af318a96647c458937eeb')
+
+prepare() {
+ cd "${srcdir}/scikit-build-${pkgver}"
+
+ # see https://github.com/scikit-build/scikit-build/pull/458
+ patch -p1 < ../issue458.patch
+}
+
+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"
+}
Added: python-scikit-build/trunk/issue458.patch
===================================================================
--- python-scikit-build/trunk/issue458.patch (rev 0)
+++ python-scikit-build/trunk/issue458.patch 2020-02-04 12:57:26 UTC (rev 562030)
@@ -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