-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
84 lines (67 loc) · 2.52 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import distutils.dir_util
from distutils.command import build
import os, sys, re
try:
import setuptools
from setuptools import setup, find_packages
from setuptools.command import install
except ImportError:
sys.stderr.write("Warning: could not import setuptools; falling back to distutils.\n")
from distutils.core import setup
from distutils.command import install
from full_cost.version import get_version
with open('README.rst') as fd:
long_description = fd.read()
setupOpts = dict(
name='fullcost',
description='Modular Data Acquisition with Python',
long_description=long_description,
license='MIT',
url='http://pymodaq.cnrs.fr',
author='Sébastien Weber',
author_email='sebastien.weber@cemes.fr',
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"Environment :: Other Environment",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Topic :: Scientific/Engineering :: Visualization",
"License :: CeCILL-B Free Software License Agreement (CECILL-B)",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces",
],)
def listAllPackages(pkgroot):
path = os.getcwd()
n = len(path.split(os.path.sep))
subdirs = [i[0].split(os.path.sep)[n:] for i in os.walk(os.path.join(path, pkgroot)) if '__init__.py' in i[2]]
return ['.'.join(p) for p in subdirs]
allPackages = (listAllPackages(pkgroot='pymodaq')) #+
#['pyqtgraph.'+x for x in helpers.listAllPackages(pkgroot='examples')])
def get_packages():
packages=find_packages()
for pkg in packages:
if 'hardware.' in pkg:
packages.pop(packages.index(pkg))
return packages
allPackages = get_packages()
setup(
version=get_version(),
#cmdclass={'build': Build,},
# 'install': Install,
# 'deb': helpers.DebCommand,
# 'test': helpers.TestCommand,
# 'debug': helpers.DebugCommand,
# 'mergetest': helpers.MergeTestCommand,
# 'style': helpers.StyleCommand},
packages=allPackages,
#package_dir={'examples': 'examples'}, ## install examples along with the rest of the source
package_data={},
install_requires = [
'numpy',
'django',
],
include_package_data=True,
**setupOpts
)