-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (38 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
import os
from distutils.core import setup, Extension
cpp_args = ['-std=c++17', '-lpthread']
README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md')
with open(README_PATH) as readme_file:
README = readme_file.read()
ext_modules = [
Extension(
'eratosthenes',
['src/prime_gen.cpp', "src/dispatchqueue.cpp"],
include_dirs=['src/include', 'pybind11/include'],
language='c++',
extra_compile_args = cpp_args,
),
]
setup(
name='Eratosthenes',
version='3.0.11',
author='Dan Strano',
author_email='[email protected]',
description='Fast prime generation for Python based on Sieve of Eratosthenes and Trial Division',
long_description=README,
long_description_content_type='text/markdown',
url="https://github.com/vm6502q/Eratosthenes",
license="MIT",
classifiers=[
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Programming Language :: C++",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering",
],
ext_modules=ext_modules,
)