forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
49 lines (44 loc) · 750 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from setuptools import setup, find_packages
import glob, os
from stat import *
def executable(path):
st = os.stat(path)[ST_MODE]
return (st & S_IEXEC) and not S_ISDIR(st)
dependencies = """
Babel
PIL
argparse
BeautifulSoup
CouchDB==0.8
DBUtils
genshi
gunicorn
iptools
lxml
psycopg2
pymarc
pytest
python-memcached
pyyaml
simplejson
sphinx
supervisor
web.py==0.33
pystatsd
celery
eventer
sqlalchemy
Pygments
OL-GeoIP
mockcache
"""
from openlibrary.core.setup_commands import commands
setup(
name='openlibrary',
version='2.0',
description='Open Library',
packages=find_packages(exclude=["ez_setup"]),
scripts=filter(executable, glob.glob('scripts/*')),
install_requires=dependencies.split(),
cmdclass=commands
)