From f7e3ec44209156e1ea6809362c2bed1dd552bb6a Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 12 Jun 2015 14:43:13 -0700 Subject: [PATCH] make it a package --- setup.cfg | 2 ++ setup.py | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..7c2b287 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal = 1 \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..11fa6d4 --- /dev/null +++ b/setup.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python + +import sys + +from distutils.core import setup + +if any(arg.startswith('bdist') for arg in sys.argv): + import setuptools + +version_ns = {} +with open('findspark.py') as f: + for line in f: + if line.startswith('__version__'): + exec(line, version_ns) + break + +setup( + name='findspark', + version=version_ns['__version__'], + py_modules=['findspark'], + description="Find pyspark to make it importable.", + long_description=""" + Provides findspark.find_spark() to make pyspark importable as a regular library. + """, + license="BSD (3-clause)", + author="Min RK", + author_email="benjaminrk@gmail.com", + url="https://github.com/minrk/findspark", +) \ No newline at end of file