-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
43 lines (34 loc) · 941 Bytes
/
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
import os
from setuptools import setup, find_packages
from setuptools.extension import Extension
HERE = os.path.abspath(os.path.dirname(__file__))
PATH_VERSION = os.path.join(HERE, 'pyinvsqrt', '__version__.py')
ABOUT = {}
with open(PATH_VERSION, mode='r', encoding='utf-8') as f:
exec(f.read(), ABOUT)
requirements = [
'numpy',
'pytest'
]
c_module = Extension(
'invsqrtc',
sources=['pyinvsqrt/main.c'],
include_dirs=['/usr/local/lib']
)
setup(
name=ABOUT['__title__'],
version=ABOUT['__version__'],
description=ABOUT['__description__'],
packages=find_packages(),
ext_modules=[c_module],
license="BSD",
author="Srinath Kailasa",
author_email='srinathkailasa@gmail.com',
url='https://github.com/skailasa/pyinvsqrt',
zip_safe=False,
install_requires=requirements,
keywords='InvSqrRoot',
classifiers=[
'Programming Language :: Python :: 3.8',
]
)