Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-openTSNE for openSUSE:Factory
checked in at 2021-04-06 17:29:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-openTSNE (Old)
and /work/SRC/openSUSE:Factory/.python-openTSNE.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-openTSNE"
Tue Apr 6 17:29:43 2021 rev:2 rq:882539 version:0.5.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-openTSNE/python-openTSNE.changes
2021-03-30 20:56:16.928444632 +0200
+++
/work/SRC/openSUSE:Factory/.python-openTSNE.new.2401/python-openTSNE.changes
2021-04-06 17:31:05.359212511 +0200
@@ -1,0 +2,5 @@
+Thu Apr 1 07:36:31 UTC 2021 - Bernhard Wiedemann <[email protected]>
+
+- Add python-openTSNE-disable-CPU-autodetection.patch (boo#1100677)
+
+-------------------------------------------------------------------
New:
----
python-openTSNE-disable-CPU-autodetection.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-openTSNE.spec ++++++
--- /var/tmp/diff_new_pack.GN0HGM/_old 2021-04-06 17:31:06.219213483 +0200
+++ /var/tmp/diff_new_pack.GN0HGM/_new 2021-04-06 17:31:06.223213488 +0200
@@ -28,6 +28,7 @@
URL: https://github.com/pavlin-policar/openTSNE
# tests are not packaged in the PyPI sdist, use GitHub instead
Source:
%{url}/archive/v%{version}.tar.gz#/openTSNE-%{version}-gh.tar.gz
+Patch0: python-openTSNE-disable-CPU-autodetection.patch
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module devel}
@@ -52,7 +53,7 @@
Extensible, parallel implementations of t-SNE
%prep
-%setup -q -n openTSNE-%{version}
+%autosetup -p1 -n openTSNE-%{version}
%build
export CFLAGS="%{optflags}"
++++++ python-openTSNE-disable-CPU-autodetection.patch ++++++
Author: Bernhard M. Wiedemann <bwiedemann suse de>
Date: 2021-04-01
Do not build code using instructions because they are available on a random
build worker.
Instead we pin the CPU type to a reasonable compromise
to allow people to run it on >50% of systems,
but also to use CPU instructions available since 10+ years
to speed up processing.
diff --git a/setup.py b/setup.py
index c00d331..35542b6 100644
--- a/setup.py
+++ b/setup.py
@@ -168,9 +168,9 @@ class CythonBuildExt(build_ext):
# package is being built locally, this is desired
if not ("AZURE_BUILD" in os.environ or "CONDA_BUILD" in os.environ):
if platform.machine() == "ppc64le":
- extra_compile_args += ["-mcpu=native"]
+ extra_compile_args += ["-mcpu=power8"]
if platform.machine() == "x86_64":
- extra_compile_args += ["-march=native"]
+ extra_compile_args += ["-march=corei7"]
# We will disable openmp flags if the compiler doesn"t support it. This
# is only really an issue with OSX clang