forked from minrk/findspark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (24 loc) · 728 Bytes
/
setup.py
File metadata and controls
29 lines (24 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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",
)