-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
31 lines (28 loc) · 1.11 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
#!/usr/bin/env python
import os
import distutils
from setuptools import setup, Extension, find_packages
import platform
api_dir = 'CereStim-API/Binaries'
arch = 'x64' if '64bit' in platform.architecture() else 'x86'
lib_name = 'BStimAPI' + arch
full_lib_relative = api_dir + '/' + lib_name + '.dll'
package_name = 'cerestim'
cerestim_module = Extension('cerestim._cerestim',
sources=['cerestim/cerestim_wrap.cxx'],
include_dirs=[api_dir],
libraries=[lib_name],
library_dirs=[api_dir],
language='c++'
)
setup(
name = package_name,
version = '0.3.0',
author = 'Chadwick Boulay',
author_email = '[email protected]',
description = 'Wrapper for Blackrock Microsystems CereStim API',
license = 'MIT',
packages = [package_name],
ext_modules = [cerestim_module],
data_files = [('Lib/site-packages/' + package_name, [full_lib_relative])] # Copy dll into correct directory.
)