import distutils
from distutils.core import setup, Extension
import os

source_list = ["src/%s" % f for f in os.listdir("src")
               if f.endswith("cpp")]

ext = Extension("blitzl1.libblitzl1",
                include_dirs=["src"],
                extra_compile_args=['-O3'],
                sources=source_list)

setup(
    name="blitzl1",
    version="0.0.1",
    description="Fast, principled, L1-regularized loss minimization",
    package_dir={"": "python"},
    packages=["blitzl1"],
    install_requires=['scipy'],
    ext_modules=[ext],
    author="Tyler B. Johnson",
    author_email="tyler@tbjohns.com",
    url="https://github.com/tbjohns/blitzl1",
    download_url="https://github.com/tbjohns/blitzl1/tarball/0.0.1",
    keywords=["supervised learning",
              "optimization",
              "lasso",
              "l1 regularized",
              "l1 penalized"]
)
