-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
33 lines (26 loc) · 921 Bytes
/
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
'''
setup.py
template script to setup data team packages
author: shailesh kochhar, zenkat
date: Oct 14, 2008
(c) 2008, Metaweb Technologies
'''
from setuptools import setup, find_packages
import glob, os, stat
def executable(path):
st = os.stat(path)[stat.ST_MODE]
result = (st & stat.S_IEXEC) and not stat.S_ISDIR(st)
print path, (result and "is" or "is not"), "executable"
return result
# string defining a glob pattern to find script files
script_file_glob = os.path.join(os.path.dirname(__file__), "scripts", "*")
scripts_list = glob.glob(script_file_glob)
setup(name='pyrabj',
version='0.1',
description='Python client for rabj',
url='https://wiki.metaweb.com/index.php/RABJ/client',
install_requires=["httplib2 >= 0.5.0", ],
package_dir={'': 'src'},
packages=find_packages('src', exclude=["ez_setup"]),
scripts=filter(executable, scripts_list)
)