public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytables/, dev-python/pytables/files/
Date: Mon,  3 Apr 2023 01:51:16 +0000 (UTC)	[thread overview]
Message-ID: <1680486620.637784cae39a93920b9738e8094d46d24331769d.sam@gentoo> (raw)

commit:     637784cae39a93920b9738e8094d46d24331769d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  3 01:50:20 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Apr  3 01:50:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=637784ca

dev-python/pytables: tweak cpuinfo patch

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/pytables/files/pytables-3.8.0-optional-cpuinfo.patch  | 9 ++++++---
 .../{pytables-3.8.0-r2.ebuild => pytables-3.8.0-r3.ebuild}       | 0
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/dev-python/pytables/files/pytables-3.8.0-optional-cpuinfo.patch b/dev-python/pytables/files/pytables-3.8.0-optional-cpuinfo.patch
index f56854b05289..2843914f4a87 100644
--- a/dev-python/pytables/files/pytables-3.8.0-optional-cpuinfo.patch
+++ b/dev-python/pytables/files/pytables-3.8.0-optional-cpuinfo.patch
@@ -1,6 +1,6 @@
 https://github.com/PyTables/PyTables/pull/1013
 
-From 557f8c22b772506bfbb9e7eb4d60c0cf2125998b Mon Sep 17 00:00:00 2001
+From 9d2487eb53af940de3b5c79200c9f4c2b90f51f2 Mon Sep 17 00:00:00 2001
 From: Sam James <sam@gentoo.org>
 Date: Mon, 3 Apr 2023 02:07:47 +0100
 Subject: [PATCH] Handle py-cpuinfo not being installed
@@ -15,19 +15,20 @@ in places where py-cpuinfo isn't yet ported.
 Signed-off-by: Sam James <sam@gentoo.org>
 --- a/tables/leaf.py
 +++ b/tables/leaf.py
-@@ -4,7 +4,10 @@
+@@ -4,7 +4,11 @@ import warnings
  import math
  
  import numpy as np
 -import cpuinfo
 +try:
 +    import cpuinfo
++    missing_cpuinfo = False
 +except ImportError:
 +    missing_cpuinfo = True
  
  from .flavor import (check_flavor, internal_flavor, toarray,
                       alias_map as flavor_alias_map)
-@@ -336,20 +339,21 @@ def _calc_chunkshape(self, expectedrows, rowsize, itemsize):
+@@ -336,20 +340,21 @@ class Leaf(Node):
              # Use a decent default value for chunksize
              chunksize *= 16
              # Now, go explore the L3 size and try to find a smarter chunksize
@@ -63,4 +64,6 @@ Signed-off-by: Sam James <sam@gentoo.org>
              # In Blosc2, the chunksize cannot be larger than 2 GB - BLOSC2_MAX_BUFFERSIZE
              if chunksize > 2**31 - 32:
                  chunksize = 2**31 - 32
+-- 
+2.40.0
 

diff --git a/dev-python/pytables/pytables-3.8.0-r2.ebuild b/dev-python/pytables/pytables-3.8.0-r3.ebuild
similarity index 100%
rename from dev-python/pytables/pytables-3.8.0-r2.ebuild
rename to dev-python/pytables/pytables-3.8.0-r3.ebuild


             reply	other threads:[~2023-04-03  1:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-03  1:51 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-05-11  6:26 [gentoo-commits] repo/gentoo:master commit in: dev-python/pytables/, dev-python/pytables/files/ Michał Górny
2022-12-28 15:31 Michał Górny
2021-11-20  6:44 Sam James
2021-06-20 17:38 Michał Górny
2017-12-04  3:30 Benda XU

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1680486620.637784cae39a93920b9738e8094d46d24331769d.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox