This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
63 lines (57 loc) · 1.83 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
58
59
60
61
62
63
try:
import pkgconfig
except:
pass
from setuptools import setup, find_packages, Extension
# The sources necessary to build libov.
# TODO: add gettimeofday.c if we're on Windows.
libov_sources = [
'libov/bit_file.c',
'libov/fastftdi.c',
'libov/fpgaconfig.c',
'libov/ftdieep.c',
'libov/hw_common.c',
'libov/usb_interp.c',
'libov/python.c'
]
# Describe how to build libov, the native-code component of the openvizsla library.
libov = Extension('openvizsla.libov_native',
sources=libov_sources,
**pkgconfig.parse('libusb-1.0')
)
setup(
name='pyopenvizsla',
version='0.1.0',
python_requires='>3.3',
url='https://github.com/usb-tools/pyopenvizsla',
license='MIT',
entry_points = {
'console_scripts': [
'ovctl = openvizsla.commands.ovctl:main',
'ov_sniff = openvizsla.commands.ov_sniff:main',
]
},
tests_require=[''],
setup_requires=['pkgconfig'],
install_requires=['crcmod'],
description='Python library for interfacing with OpenVizsla logic analyzers',
long_description='Python library for interfacing with OpenVizsla logic analyzers; intended to all modular use of libOV in other programs',
ext_modules = [libov],
packages=find_packages(),
include_package_data=True,
platforms='any',
classifiers = [
'Programming Language :: Python',
'Development Status :: 1 - Planning',
'Natural Language :: English',
'Environment :: Console',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering',
'Topic :: Security',
],
extras_require={}
)