@@ -0,0 +1,1258 @@
+from distutils.core import setup%0Afrom distutils.extension import Extension%0Aimport codecs%0Aimport os%0Aimport re%0A%0A%0Adef local_file(filename):%0A    return codecs.open(%0A        os.path.join(os.path.dirname(__file__), filename), 'r', 'utf-8'%0A    )%0A%0Aversion = re.search(%0A    %22%5E__version__ = %5C((%5Cd+), (%5Cd+), (%5Cd+)%5C)%22,%0A    local_file(os.path.join('KSIF', '__init__.py')).read(),%0A    re.MULTILINE%0A).groups()%0A%0Atry:%0A    from Cython.Build import cythonize%0Aexcept ImportError:%0A    use_cython = False%0Aelse:%0A    use_cython = True%0A%0Aext_modules = %5B%5D%0A%0Aif use_cython:%0A    ext_modules = cythonize('KSIF/base.py')%0Aelse:%0A    ext_modules = %5B%0A        Extension('KSIF.base', %5B'KSIF/base.c'%5D)%0A    %5D%0A%0Asetup(%0A    name=%22KSIF%22,%0A    version='.'.join(version),%0A    author='Seung Hyeon Yu',%0A    author_email='rambor12@business.kaist.ac.kr',%0A    description='KSIF Library',%0A    keywords='python finance quant backtesting strategies',%0A    url='https://github.com/KAISTSIF/KSIF',%0A    install_requires=%5B%0A        'pyprind'%0A    %5D,%0A    packages=%5B'KSIF'%5D,%0A    long_description=local_file('README.rst').read(),%0A    classifiers=%5B%0A        'Development Status :: 3 - Alpha',%0A        'Topic :: Software Development :: Libraries',%0A        'Programming Language :: Python'%0A    %5D,%0A    ext_modules=ext_modules%0A)%0A

Create setup.py