forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (42 loc) · 802 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
import glob
import os
from setuptools import setup, find_packages
from stat import ST_MODE, S_IEXEC, S_ISDIR
from Cython.Build import cythonize
def executable(path):
st = os.stat(path)[ST_MODE]
return (st & S_IEXEC) and not S_ISDIR(st)
dependencies = """
Babel
PIL
argparse
beautifulsoup4
DBUtils
genshi
gunicorn
iptools
lxml
psycopg2
pymarc
pytest
python-memcached
pyyaml
simplejson
supervisor
web.py==0.33
pystatsd
eventer
Pygments
OL-GeoIP
mockcache
"""
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(),
# Used to make solrbuilder faster
ext_modules=cythonize("openlibrary/solr/update_work.py")
)