This repository was archived by the owner on Sep 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
42 lines (37 loc) · 1.44 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
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import distutils.util
def find_packages(where='.'):
"""Borrowed from `Distribute <http://packages.python.org/distribute/>`_."""
out = []
stack=[(distutils.util.convert_path(where), '')]
while stack:
where,prefix = stack.pop(0)
for name in os.listdir(where):
fn = os.path.join(where,name)
if ('.' not in name and os.path.isdir(fn) and
os.path.isfile(os.path.join(fn, '__init__.py'))):
out.append(prefix+name); stack.append((fn, prefix + name + '.'))
for pat in 'ez_setup', 'distribute_setup':
from fnmatch import fnmatchcase
out = [item for item in out if not fnmatchcase(item, pat)]
return out
setup(name='LangDev',
version='0.1',
url='http://langdev.org/',
author='Hong Minhee',
author_email='minhee' '@' 'dahlia.kr',
description='Programming language implementors and designers community.',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=['SQLAlchemy >=0.7', 'markdown2',
'Flask >= 0.7', 'Werkzeug', 'Jinja2', 'Flask-WTF',
'Flask-Mail', 'Flask-Script'],
extras_require={'docs': ['Sphinx >=1.0',
'sphinxcontrib-httpdomain >=1.1.4']},
license='AGPLv3')