#!/usr/bin/env python
# -*- coding: utf-8 -*-


import sys, os

if sys.version_info[:2] < (2, 6):
    raise Exception('This version of gensim needs Python 2.6 or later. ')


from distutils.core import setup
from distutils.util import convert_path
from fnmatch import fnmatchcase
from setuptools import setup, find_packages, Extension


def find_packages(where='.', exclude=()):
    out = []
    stack = [(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 list(exclude) + ['ez_setup', 'distribute_setup']:
        out = [item for item in out if not fnmatchcase(item, pat)]
    return out

resource_dir = os.path.join(os.path.dirname(__file__), 'deepy', 'resources')

setup(
    name='deepy',
    version='0.0.2',
    description='Highly extensible deep learning framework based on Theano',

    author='Raphael Shu',
    author_email='raphael@uaca.com',

    url='http://nlpy.org',
    download_url='http://pypi.python.org/pypi/deepy',

    keywords=' Deep learning '
        ' Neural network ',

    license='MIT',
    platforms='any',

    packages=find_packages(),

    classifiers=[ # from http://pypi.python.org/pypi?%3Aaction=list_classifiers
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Console',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4',
        'Topic :: Scientific/Engineering :: Artificial Intelligence',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Text Processing :: Linguistic',
    ],

    setup_requires = [
        'numpy >= 1.3',
        'theano >= 0.6.0',
    ],
    install_requires=[
        'numpy >= 1.3',
        'theano >= 0.6.0',
    ],

    extras_require={
    },

    include_package_data=True,
)
@@ -129,18 +129,8 @@
 ion 
-of gensim 
 need
@@ -322,284 +322,44 @@
 on%0A%0A
-%0Adef find_packages(where='.', exclude=()):%0A    out = %5B%5D%0A    stack = %5B(convert_path(where), '')%5D%0A    while stack:%0A        where, prefix = stack.pop(0)%0A        for name in os.listdir(where):%0A            fn = os.path.join(where, name)%0A            if ('.' not in name and 
+resource_dir = os.path.join(
 os.path.
 isdi
@@ -358,416 +358,156 @@
 ath.
-is
 dir
-(fn) and%0A                os.path.isfile(os.path.join(fn, '__init__.py'))%0A            ):%0A                out.append(prefix+name)%0A                stack.append((fn, prefix+name+'.'))%0A    for pat in list(exclude) + %5B'ez_setup', 'distribute_setup'%5D:%0A        out = %5Bitem for item in out if not fnmatchcase(item, pat)%5D%0A    return out%0A%0Aresource_dir = os.path.join(os.path.dirname(__file__), 'deepy', 'resources'
+name(__file__), 'deepy', 'resources')%0A%0Arequirements = open(os.path.join(os.path.dirname(__file__), 'requirements.txt')).read().strip().split(%22%5Cn%22
 )%0A%0As
@@ -547,17 +547,17 @@
 on='0.0.
-2
+3
 ',%0A    d
@@ -832,16 +832,56 @@
 etwork '
+%0A        ' Natural language processing '
 ,%0A%0A    l
@@ -1660,147 +1660,55 @@
 s = 
-%5B%0A        'numpy %3E= 1.3',%0A        'theano %3E= 0.6.0',%0A    %5D,%0A    install_requires=%5B%0A        'numpy %3E= 1.3',%0A        'theano %3E= 0.6.0',%0A    %5D
+requirements,%0A    install_requires=requirements
 ,%0A%0A 

Version 0.0.3