-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
51 lines (42 loc) · 1.29 KB
/
setup.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os
import re
import sys
import platform
import subprocess
import multiprocessing
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
from distutils.version import LooseVersion
cores = multiprocessing.cpu_count()*1.25
threads="-j" + str(int(cores))
class CMakeExtension(Extension):
def __init__(self, name, sourcedir=''):
Extension.__init__(self, name, sources=[])
self.sourcedir = os.path.abspath(sourcedir)
def readme():
with open("PYTHONREADME.md", "r") as fh:
return fh.read()
def operatingsystem():
if (platform.platform().find("Darwin") >= 0):
return "Operating System :: MacOS"
else:
return "Operating System :: POSIX :: Linux"
setup(
name='sharkbite',
version='1.2.0.3',
author='Marc Parisi',
author_email='phrocker@apache.org',
url='https://docs.sharkbite.io/',
description='Apache Accumulo and Apache HDFS Python Connector',
long_description=readme(),
long_description_content_type='text/markdown',
ext_modules=[CMakeExtension('sharkbite.pysharkbite')],
zip_safe=False,
classifiers=[
"Programming Language :: C++",
"License :: OSI Approved :: Apache Software License",
operatingsystem(),
],
python_requires='>=3.6',
packages=['sharkbite']
)