from __future__ import (absolute_import, division, print_function)
__author__ = 'arkilic'




import sys
import warnings
import shutil
try:
    from setuptools import setup
except ImportError:
    try:
        from setuptools.core import setup
    except ImportError:
        from distutils.core import setup

from distutils.core import setup, Extension
import os

MAJOR = 0
MINOR = 1
MICRO = 0
ISRELEASED = False
SNAPSHOT = False
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
QUALIFIER = ''

FULLVERSION = VERSION
print(FULLVERSION)

# Utility function to read the README file.
# Used for the long_description.  It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

if not ISRELEASED:
    import subprocess
    FULLVERSION += '.dev'
    if SNAPSHOT:
        pipe = None
        for cmd in ['git', 'git.cmd']:
            try:
                pipe = subprocess.Popen([cmd, "describe", "--always",
                                         "--match", "v[0-9\/]*"],
                                        stdout=subprocess.PIPE)
                (so, serr) = pipe.communicate()
                print(so, serr)
                if pipe.returncode == 0:
                    pass
                print('here')
            except:
                pass
            if pipe is None or pipe.returncode != 0:
                warnings.warn("WARNING: Couldn't get git revision, "
                              "using generic version string")
            else:
                rev = so.strip()
                # makes distutils blow up on Python 2.7
                if sys.version_info[0] >= 3:
                    rev = rev.decode('ascii')

                # use result of git describe as version string
                FULLVERSION = VERSION + '-' + rev.lstrip('v')
                break
else:
    FULLVERSION += QUALIFIER

setup(
    name='filestore',
    version=FULLVERSION,
    author='Arkilic',
    author_email=None,
    license="BSD (3-clause)",
    url="https://github.com/NSLS-II/filestore",
    packages=['filestore', 'filestore.utils'],
    long_description=read('README.md'),
    classifiers=[
        "License :: OSI Approved :: EPICS License",
        "Development Status :: 3 - Alpha",
        "Programming Language :: Python :: 2.7",
    ],
)

@@ -2416,10 +2416,70 @@
 %0A    %5D,%0A
+    requires=%5B'h5py', 'numpy', 'mongoengine', 'jsonschema'%5D%0A
 )%0A

Add setup.py requires.