-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (34 loc) · 1.21 KB
/
setup.py
File metadata and controls
39 lines (34 loc) · 1.21 KB
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
'''Installs cpp_patcher'''
from os import path
from glob import glob
from setuptools import setup
from pybind11.setup_helpers import Pybind11Extension
ext_modules = [
Pybind11Extension("npy_patcher", sorted(glob("src/*.cpp")), include_dirs=['./'], cxx_std=17),
]
version = '1.3.0'
this_dir = path.abspath(path.dirname(__file__))
with open(path.join(this_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='npy-patcher',
version=version,
description='C++ based NumPy N-Dimesional patch extraction.',
author='Matthew Lyon',
author_email='matthewlyon18@gmail.com',
url='https://github.com/m-lyon/npy-cpp-patches',
download_url=f'https://https://github.com/m-lyon/npy-cpp-patches/archive/v{version}.tar.gz',
long_description=long_description,
long_description_content_type='text/markdown',
python_requires='>=3.6',
license='MIT License',
classifiers=[
'Programming Language :: Python',
'Operating System :: Unix',
'Operating System :: MacOS',
],
ext_modules=ext_modules,
packages=['npy_patcher'],
package_dir={'npy_patcher': 'src/npy_patcher'},
package_data={'npy_patcher': ['__init__.pyi', 'py.typed']},
)