forked from ScienceMode/ScienceMode4_python_wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (46 loc) · 1.47 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import glob
import os
from io import FileIO
from pathlib import Path
import platform
import sys
import shutil
VERSION = '1.0.0'
package_data = {'': ['*.xml']}
package_data['sciencemode'] = ['*.dll']
#if sys.platform.startswith('win'): # windows
# devel_roots = Path("./smpt/ScienceMode_Library").absolute()
# if platform.architecture()[0] == '64bit':
# architecture = 'x64'
# else:
# architecture = 'x86'
# for devel_root in devel_roots:
# dll_sources = glob.glob(os.sep.join([devel_root, 'lib', architecture, '*.dll']))
# dll_dest = 'sciencemode'
# for dll_source in dll_sources:
# print('Copying {} to {}'.format(dll_source, dll_dest))
# shutil.copy(dll_source, dll_dest)
# package_data['sciencemode'] = ['*.dll']
setup(
name='sciencemode-cffi',
packages=['sciencemode'],
package_data=package_data,
version=VERSION,
description='CFFI wrapper for SCIENCEMODE',
author='Holger Nahrstaedt',
author_email='[email protected]',
license="MIT",
url='https://github.com/sciencemode',
keywords=['sciencemode', 'cffi'],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3',
],
setup_requires=['cffi>=1.0.0', 'pycparser>=2.14'],
cffi_modules=[
'{}:ffi'.format(os.sep.join(['sciencemode', '_cffi.py'])),
],
install_requires=['cffi>=1.0.0']
)