[h5py] 437/455: Make building on Windows easier

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:59 UTC 2015


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

ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.

commit 7a7b0159f62f7bd3265707fe7fb4e172a0f4801e
Author: andrewcollette <andrew.collette at gmail.com>
Date:   Wed Mar 3 03:53:14 2010 +0000

    Make building on Windows easier
---
 setup.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/setup.py b/setup.py
index 9d39f87..b638340 100644
--- a/setup.py
+++ b/setup.py
@@ -213,6 +213,7 @@ class configure(Command):
         if sys.platform.startswith('win'):
             shutil.copy(op.join(HDF5, 'dll', 'hdf5dll18.dll'), op.join(self.tempdir, 'hdf5dll18.dll'))
             shutil.copy(op.join(HDF5, 'dll', 'zlib1.dll'), op.join(self.tempdir, 'zlib1.dll'))
+            shutil.copy(op.join(HDF5, 'dll', 'szlibdll.dll'), op.join(self.tempdir, 'szlibdll.dll'))
 
     def erase_tempdir(self):
         import shutil
@@ -375,6 +376,13 @@ class hbuild_ext(build_ext):
         else:
             autostr = "(located at %s)" % hdf5
         
+        if sys.platform.startswith('win'):
+            if hdf5 is None:
+                fatal("HDF5 directory must be specified on Windows")
+            shutil.copy(op.join(hdf5, 'dll', 'hdf5dll18.dll'), localpath('h5py','hdf5dll18.dll'))
+            shutil.copy(op.join(hdf5, 'dll', 'zlib1.dll'), localpath('h5py', 'zlib1.dll'))
+            shutil.copy(op.join(hdf5, 'dll', 'szlibdll.dll'), localpath('h5py', 'szlibdll.dll'))
+
         print "*"*49
         print "Build: Building for HDF5 %s.%s %s" % (api[0], api[1], autostr)
         print "*"*49

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git



More information about the debian-science-commits mailing list