Hello community,
here is the log from the commit of package python-scikit-build for
openSUSE:Factory checked in at 2020-03-10 12:34:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-scikit-build (Old)
and /work/SRC/openSUSE:Factory/.python-scikit-build.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-scikit-build"
Tue Mar 10 12:34:03 2020 rev:2 rq:783298 version:0.10.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-scikit-build/python-scikit-build.changes
2019-07-04 15:42:43.514058000 +0200
+++
/work/SRC/openSUSE:Factory/.python-scikit-build.new.26092/python-scikit-build.changes
2020-03-10 12:34:08.476853078 +0100
@@ -1,0 +2,6 @@
+Tue Mar 10 10:33:57 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Add patch to build with python3.8:
+ * python38.patch
+
+-------------------------------------------------------------------
New:
----
python38.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-scikit-build.spec ++++++
--- /var/tmp/diff_new_pack.3SylpG/_old 2020-03-10 12:34:12.108854866 +0100
+++ /var/tmp/diff_new_pack.3SylpG/_new 2020-03-10 12:34:12.112854868 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-scikit-build
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -22,13 +22,14 @@
Release: 0
Summary: Improved build system generator for Python
C/C++/Fortran/Cython extensions
License: MIT
-Group: Development/Languages/Python
URL: https://github.com/scikit-build/scikit-build
Source:
https://files.pythonhosted.org/packages/source/s/scikit-build/scikit-build-%{version}.tar.gz
+Patch0: python38.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools >= 28.0.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires: python-distro
Requires: python-packaging
Requires: python-setuptools >= 28.0.0
Requires: python-wheel >= 0.29.0
@@ -36,6 +37,7 @@
BuildRequires: %{python_module Cython >= 0.25.1}
BuildRequires: %{python_module codecov >= 2.0.5}
BuildRequires: %{python_module coverage >= 4.2}
+BuildRequires: %{python_module distro}
BuildRequires: %{python_module flake8 >= 3.0.4}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module path.py >= 11.5.0}
@@ -61,6 +63,7 @@
%prep
%setup -q -n scikit-build-%{version}
+%patch0 -p1
%build
%python_build
@@ -69,7 +72,6 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
-
%check
# setup.py install, develop, etc default to writing to /usr .
# Tests need enhancing upstream or patching.
++++++ python38.patch ++++++
>From faa7284e5bc4c72bc8744987acdf3297b5d2e7e4 Mon Sep 17 00:00:00 2001
From: Ben <[email protected]>
Date: Mon, 25 Nov 2019 02:03:58 +0100
Subject: [PATCH] platform.linux_distribution() was removed in Python 3.8. Move
to distro package (#458)
---
requirements.txt | 3 ++-
skbuild/platform_specifics/linux.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/requirements.txt b/requirements.txt
index 7111c997..66c7b92f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,4 @@
wheel>=0.29.0
setuptools>=28.0.0
-packaging
\ No newline at end of file
+packaging
+distro
diff --git a/skbuild/platform_specifics/linux.py
b/skbuild/platform_specifics/linux.py
index c13666a7..431017f8 100644
--- a/skbuild/platform_specifics/linux.py
+++ b/skbuild/platform_specifics/linux.py
@@ -1,5 +1,6 @@
"""This module defines object specific to Linux platform."""
+import distro
import platform
import sys
import textwrap
@@ -24,7 +25,7 @@ def build_essential_install_cmd():
"""
# 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']: