Skip to content

Commit

Permalink
make it a package
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Jun 12, 2015
1 parent 4f3d675 commit f7e3ec4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal = 1
29 changes: 29 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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="[email protected]",
url="https://github.com/minrk/findspark",
)

0 comments on commit f7e3ec4

Please sign in to comment.