[pytango] 224/483: Modified setup.py to take into account lib64 6
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.
commit ad5baa91649f8aea229450f6f18a1ceb7bf1e4a9
Author: trogucki <trogucki at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date: Thu Jan 31 12:43:36 2013 +0000
Modified setup.py to take into account lib64 6
git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@22005 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
setup.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/setup.py b/setup.py
index 7c2c701..45803fb 100644
--- a/setup.py
+++ b/setup.py
@@ -381,10 +381,13 @@ def main():
library_dirs = []
for f in (TANGO_ROOT,BOOST_ROOT,LOG4TANGO_ROOT,ZMQ_ROOT):
+ is64 = 8 * struct.calcsize("P") == 64
d = os.path.join(f,'lib')
- try:
- if not os.stat(d): raise Exception('%s_doesnt_exist'%d)
- except: d = os.path.join(f,'lib64')
+ if is64:
+ d = os.path.join(f,'lib64')
+ try:
+ if not os.stat(d): raise Exception('%s_doesnt_exist'%d)
+ except: d = os.path.join(f,'lib')
library_dirs.append(d)
print('library_dirs: %s'%library_dirs)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list