forked from ioflo/ioflo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
70 lines (56 loc) · 2.32 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
"""
setup.py
Basic setup file to enable pip install
See:
https://pythonhosted.org/setuptools/
https://bitbucket.org/pypa/setuptools
python setup.py register sdist upload
"""
import sys
import os
from setuptools import setup, find_packages
# Change to Ioflo's source directory prior to running any command
try:
SETUP_DIRNAME = os.path.dirname(__file__)
except NameError:
# We're probably being frozen, and __file__ triggered this NameError
# Work around this
SETUP_DIRNAME = os.path.dirname(sys.argv[0])
if SETUP_DIRNAME != '':
os.chdir(SETUP_DIRNAME)
SETUP_DIRNAME = os.path.abspath(SETUP_DIRNAME)
IOFLO_METADATA = os.path.join(SETUP_DIRNAME, 'ioflo', '__metadata__.py')
# Load the metadata using exec() so we don't trigger an import of ioflo.__init__
# This is mainly a problem for Python 2.6
exec(compile(open(IOFLO_METADATA).read(), IOFLO_METADATA, 'exec'))
PYTHON26_REQUIRES = []
if sys.version_info < (2, 7): #tuple comparison element by element
PYTHON26_REQUIRES.extend(['importlib>=1.0.3',
'argparse>=1.2.1'])
if sys.version_info > (3,):
PYTHON_SCRIPTS = ['scripts/ioflo', 'scripts/ioflo3',]
else:
PYTHON_SCRIPTS = ['scripts/ioflo', 'scripts/ioflo2',]
setup(
name='ioflo',
version=__version__,
description='Flow Based Programming Automated Reasoning Engine and Automation Operation System',
long_description='Enabling the Programmable World. http://ioflo.com ',
url='https://github.com/ioflo/ioflo',
download_url='https://github.com/ioflo/ioflo/archive/master.zip',
author=__author__,
author_email='[email protected]',
license=__license__,
keywords=('Automation Operating System Automated Reasoning Engine '
'Flow Based Programming Intelligent Automation Pub/Sub ioflo FloScript'),
packages=find_packages(exclude=['test', 'test.*',
'docs', 'docs*',
'log', 'log*', 'ioflo/app/log*']),
package_data={
'': ['*.txt', '*.md', '*.rst', '*.json', '*.conf', '*.html',
'*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL'],
'ioflo': ['app/plan/*.flo', 'app/plan/*/*.flo',
'app/plan/*.txt', 'app/plan/*/*.txt',],},
install_requires=PYTHON26_REQUIRES,
extras_require={},
scripts=PYTHON_SCRIPTS,)