1
0

Accepting request 1160837 from devel:languages:python:numeric

- update to 1.0.1:
  * setup.py maintenance
  * drop Python 3.6 support
  * correctly implement dof parameter in exact BH implementation
- drop get-numpy-include.patch (upstream)

  * Given the longtime stability of openTSNE, it is only fitting

OBS-URL: https://build.opensuse.org/request/show/1160837
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-openTSNE?expand=0&rev=6
This commit is contained in:
Ana Guerrero 2024-03-25 20:08:00 +00:00 committed by Git OBS Bridge
commit f61cf26a40
6 changed files with 22 additions and 49 deletions

View File

@ -1,33 +0,0 @@
From 07d8ad1f89356dc77a503071a16516873f4d4e30 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavlin=20Poli=C4=8Dar?= <pavlin.g.p@gmail.com>
Date: Sat, 19 Aug 2023 11:29:35 +0200
Subject: [PATCH] Fix #248: get_numpy_include class error in new pip
---
setup.py | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/setup.py b/setup.py
index 0f6a3d5..e44111c 100644
--- a/setup.py
+++ b/setup.py
@@ -55,16 +55,9 @@ def run(self):
writer.write(body, resources, nb_name)
-class get_numpy_include:
- """Helper class to determine the numpy include path
-
- The purpose of this class is to postpone importing numpy until it is
- actually installed, so that the ``get_include()`` method can be invoked.
-
- """
- def __str__(self):
- import numpy
- return numpy.get_include()
+def get_numpy_include():
+ import numpy
+ return numpy.get_include()
def get_include_dirs():

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31de08ea24dbfccec756535d5b9c3aa72cdcaad1bad2f505de6993328743f4f0
size 22643133

3
openTSNE-1.0.1-gh.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:525b3e33716b67c577a3c4567627ab6388ea61d5dd0b230c87e434f3c7268e1d
size 22107255

View File

@ -8,11 +8,11 @@ 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):
Index: openTSNE-1.0.1/setup.py
===================================================================
--- openTSNE-1.0.1.orig/setup.py
+++ openTSNE-1.0.1/setup.py
@@ -155,9 +155,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":
@ -22,5 +22,5 @@ index c00d331..35542b6 100644
- extra_compile_args += ["-march=native"]
+ extra_compile_args += ["-march=corei7"]
# We will disable openmp flags if the compiler doesn"t support it. This
# We will disable openmp flags if the compiler doesn't support it. This
# is only really an issue with OSX clang

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Mar 22 20:48:51 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.0.1:
* setup.py maintenance
* drop Python 3.6 support
* correctly implement dof parameter in exact BH implementation
- drop get-numpy-include.patch (upstream)
-------------------------------------------------------------------
Thu Sep 14 13:26:03 UTC 2023 - Markéta Machová <mmachova@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-openTSNE
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,10 +16,9 @@
#
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-openTSNE
Version: 1.0.0
Version: 1.0.1
Release: 0
Summary: Extensible, parallel implementations of t-SNE
License: BSD-3-Clause
@ -27,8 +26,6 @@ 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
# PATCH-FIX-UPSTREAM https://github.com/pavlin-policar/openTSNE/commit/07d8ad1f89356dc77a503071a16516873f4d4e30 Fix #248: get_numpy_include class error in new pip
Patch1: get-numpy-include.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module numpy-devel >= 1.16.6}