-
Notifications
You must be signed in to change notification settings - Fork 131
/
setup.py
55 lines (50 loc) · 1.57 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
#
# Copyright (C) 2017-2018 Pico Technology Ltd.
#
from __future__ import print_function
from setuptools import setup
import ctypes
from ctypes import *
from ctypes.util import find_library
import sys
import os.path
signalfile = ".sdkwarning"
if not os.path.exists(signalfile):
name = 'ps2000'
try:
if sys.platform == 'win32':
result = ctypes.WinDLL(find_library(name))
else:
result = cdll.LoadLibrary(find_library(name))
except OSError:
print("Please install the PicoSDK in order to use this wrapper."
"Visit https://www.picotech.com/downloads")
exit(1)
open(signalfile, 'a').close()
with open("README.md") as f:
readme = f.read()
setup(
name='picosdk',
packages=['picosdk'],
install_requires=["numpy>=1.12.1"],
version='1.0',
description='PicoSDK Python wrapper',
long_description=readme,
author='Pico Technology Ltd',
author_email='[email protected]',
license="ISC",
url='https://www.picotech.com',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: ISC License (ISCL)",
"Natural Language :: English",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering",
],
)