forked from domna/tdm_loader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (47 loc) · 1.75 KB
/
Copy pathsetup.py
File metadata and controls
58 lines (47 loc) · 1.75 KB
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
try:
from setuptools import setup
setuptools_available = True
except ImportError:
from distutils.core import setup
setuptools_available = False
import sys
import os
current_dir = os.getcwd()
sys.path.insert(0, current_dir)
requires = ['numpy>=1.5']
package_name = 'tdm_loader'
with open(os.path.join(current_dir, package_name, 'VERSION'), 'rb') as fobj:
version = fobj.read().strip()
try:
long_description = open(os.path.join(current_dir, 'README.md'),
'rb').read()
except:
long_description = ''
# these files will be installed with the package
# they must also appear in MANIFEST.in
data_files = ['VERSION']
kwargs = dict(
name = package_name,
version = version,
author = 'Florian Dobener and Josh Ayers (until 2016)',
author_email = 'florian.dobener (at) schroedingerscat.org',
maintainer = 'Florian Dobener',
maintainer_email = 'florian.dobener@schroedingerscat.org',
url = 'https://bitbucket.org/floriandobener/tdm_loader',
license = 'MIT',
description = ('Open National Instruments TDM/TDX files as '
'NumPy structured arrays.'),
long_description = long_description,
packages = [package_name],
package_data = {package_name:data_files},
classifiers = ['Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research'])
if setuptools_available:
kwargs.update(dict(
install_requires = requires))
setup(**kwargs)