forked from pyepics/pyepics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (41 loc) · 1.48 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env python
from distutils.core import setup
import os
import sys
import lib
#
no_libca="""*******************************************************
*** WARNING - WARNING - WARNING - WARNING - WARNING ***
Could not find CA dynamic library!
A dynamic library (libca.so or libca.dylib) for EPICS CA
must be found in order for EPICS calls to work properly.
Please read the INSTALL inststructions, and fix this
problem before tyring to use the epics package.
*******************************************************
"""
data_files = None
if os.name == 'nt':
try:
import platform
nbits = platform.architecture()[0]
except:
nbits = '32bit'
if nbits.startswith('64'):
data_files = [('DLLs', ['dlls/win64/ca.dll','dlls/win64/Com.dll'])]
else:
data_files = [('DLLs', ['dlls/win32/ca.dll','dlls/win32/Com.dll'])]
setup(name = 'pyepics',
version = lib.__version__,
author = 'Matthew Newville',
author_email = '[email protected]',
url = 'http://cars9.uchicago.edu/software/python/pyepics3/',
license = 'Epics Open License',
description = "Epics Channel Access Extensions to Python",
package_dir = {'epics': 'lib'},
packages = ['epics','epics.wx','epics.devices', 'epics.compat', 'epics.autosave'],
data_files = data_files )
try:
libca = lib.ca.find_libca()
sys.stdout.write("\n Will use CA library at: %s \n\n" % libca)
except:
sys.stdout.write("%s" % no_libca)