[pykdtree] 01/05: New upstream version 1.2.2

Antonio Valentino a_valentino-guest at moszumanska.debian.org
Sun Jun 4 16:02:12 UTC 2017


This is an automated email from the git hooks/post-receive script.

a_valentino-guest pushed a commit to branch master
in repository pykdtree.

commit ef00b3b1a6f8009496223e81da9c2af9de383c4b
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Sun Jun 4 09:30:46 2017 +0200

    New upstream version 1.2.2
---
 PKG-INFO                      |  2 +-
 pykdtree.egg-info/PKG-INFO    |  2 +-
 pykdtree.egg-info/SOURCES.txt |  1 +
 setup.cfg                     |  4 ++++
 setup.py                      | 14 +++++++++++---
 5 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/PKG-INFO b/PKG-INFO
index 9b78cbe..eb265c5 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pykdtree
-Version: 1.2.1
+Version: 1.2.2
 Summary: Fast kd-tree implementation with OpenMP-enabled queries
 Home-page: UNKNOWN
 Author: Esben S. Nielsen
diff --git a/pykdtree.egg-info/PKG-INFO b/pykdtree.egg-info/PKG-INFO
index 9b78cbe..eb265c5 100644
--- a/pykdtree.egg-info/PKG-INFO
+++ b/pykdtree.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pykdtree
-Version: 1.2.1
+Version: 1.2.2
 Summary: Fast kd-tree implementation with OpenMP-enabled queries
 Home-page: UNKNOWN
 Author: Esben S. Nielsen
diff --git a/pykdtree.egg-info/SOURCES.txt b/pykdtree.egg-info/SOURCES.txt
index 2b0b577..d391abd 100644
--- a/pykdtree.egg-info/SOURCES.txt
+++ b/pykdtree.egg-info/SOURCES.txt
@@ -1,5 +1,6 @@
 MANIFEST.in
 README
+setup.cfg
 setup.py
 pykdtree/__init__.py
 pykdtree/_kdtree_core.c
diff --git a/setup.cfg b/setup.cfg
index 861a9f5..b1c3cdf 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,3 +1,7 @@
+[bdist_rpm]
+requires = numpy
+release = 1
+
 [egg_info]
 tag_build = 
 tag_date = 0
diff --git a/setup.py b/setup.py
index c0c0b22..7fa9cfb 100644
--- a/setup.py
+++ b/setup.py
@@ -25,6 +25,14 @@ try:
 except KeyError:
     use_omp = True
 
+
+def set_builtin(name, value):
+    if isinstance(__builtins__, dict):
+        __builtins__[name] = value
+    else:
+        setattr(__builtins__, name, value)
+
+
 # Custom builder to handler compiler flags. Edit if needed.
 class build_ext_subclass(build_ext):
     def build_extensions(self):
@@ -54,18 +62,18 @@ class build_ext_subclass(build_ext):
         '''
         In order to avoid premature import of numpy before it gets installed as a dependency
         get numpy include directories during the extensions building process
-	http://stackoverflow.com/questions/19919905/how-to-bootstrap-numpy-installation-in-setup-py
+        http://stackoverflow.com/questions/19919905/how-to-bootstrap-numpy-installation-in-setup-py
         '''
         build_ext.finalize_options(self)
         # Prevent numpy from thinking it is still in its setup process:
-        __builtins__.__NUMPY_SETUP__ = False
+        set_builtin('__NUMPY_SETUP__', False)
         import numpy
         self.include_dirs.append(numpy.get_include())
  
         
 setup(
     name='pykdtree',
-    version='1.2.1',
+    version='1.2.2',
     description='Fast kd-tree implementation with OpenMP-enabled queries',
     author='Esben S. Nielsen',
     author_email='storpipfugl at gmail.com',

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pykdtree.git



More information about the Pkg-grass-devel mailing list