forked from sdickreuter/python-andor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (54 loc) · 2.04 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
49
50
51
52
53
54
55
56
57
from setuptools import setup, Extension
import numpy
# from distutils.core import setup
#from distutils.extension import Extension
#from Cython.Build import cythonize
#from Cython.Distutils import build_ext
# extensions = cythonize([
# Extension("Andor.andorSDK", ["Andor/andorSDK.pyx","Andor/atmcdLXd.pxd"],
# libraries = ['andor']),
# Extension("Shamrock.shamrockSDK", ["Shamrock/shamrockSDK.pyx", "Shamrock/ShamrockCIF.pxd"],
# libraries=['shamrockcif'])
# ])
#
#
# setup(
# name = 'Andor',
# requires = ['numpy(>=1.7.0)', 'cython(>=0.23)'],
# cmdclass = {'build_ext ': build_ext},
# ext_modules = extensions,
# #setup_requires=['setuptools>=18.0','Cython>=0.23'],
# #install_requires=['numpy>=1.7.0','Cython>=0.23'],
# packages=['Andor','Shamrock','AndorSpectrometer']
# )
setup(name='Andor',
packages=['Andor', 'Shamrock', 'AndorSpectrometer'],
package_dir={'Andor': 'Andor','Shamrock': 'Shamrock','AndorSpectrometer': 'AndorSpectrometer'},
package_data={
'Andor': ['atmcdLXD.pxd'],
'Shamrock': ['ShamrockCIF.pxd']},
description='Python binding for Andor SDK',
author='Simon Dickreuter',
author_email='[email protected]',
license='GNU LGPL',
#url='',
setup_requires=[
'setuptools>=28.3',
'Cython>=0.24'
],
install_requires=[
'numpy>=1.11',
'Cython>=0.24'
],
ext_modules=[
# Extension("Andor.andorSDK", ["Andor/c_andorSDK.c","Andor/andorSDK.pyx"],
# libraries = ['andor']),
# Extension("Shamrock.shamrockSDK", ["Shamrock/c_shamrockSDK.c","Shamrock/shamrockSDK.pyx"],
# libraries=['shamrockcif'])
Extension("Andor.andorSDK", ["Andor/andorSDK.pyx"],
libraries=['andor'],include_dirs=[numpy.get_include()]),
Extension("Shamrock.shamrockSDK", ["Shamrock/shamrockSDK.pyx"],
libraries=['shamrockcif'],include_dirs=[numpy.get_include()]),
],
include_dirs=[numpy.get_include()]
)