[python-arrayfire] 42/250: Adding support for windows and cygwin
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:29 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository python-arrayfire.
commit 38ace15c1b0baee0835fcc73195af403003c553e
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Thu Jul 16 18:08:14 2015 -0400
Adding support for windows and cygwin
---
arrayfire/library.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arrayfire/library.py b/arrayfire/library.py
index 058997a..44ce021 100644
--- a/arrayfire/library.py
+++ b/arrayfire/library.py
@@ -12,12 +12,16 @@ import ctypes as ct
def load_backend(name):
platform_name = platform.system()
+ assert(len(platform_name) >= 3)
libname = 'libaf' + name
if platform_name == 'Linux':
libname += '.so'
elif platform_name == 'Darwin':
libname += '.dylib'
+ elif platform_name == "Windows" or platform_name[:3] == "CYG":
+ libname += '.dll'
+ libname = libname[3:] # remove 'lib'
else:
raise OSError(platform_name + ' not supported')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-arrayfire.git
More information about the debian-science-commits
mailing list