-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
46 lines (43 loc) · 1.5 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
import os
try:
from Cython.Build import cythonize
except (ImportError, NameError):
# skip cythonizing
cythonize = lambda x: 0
from setuptools import Extension, setup
with open("README.md", "r+") as f:
long_description = f.read()
setup(
name="pybase122",
version="0.1.0",
description="pybase122: Encode and decode base122 data quickly and easily!",
license="The Unlicense",
url="https://github.com/Theelx/pybase122",
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
scripts=["pybase122.py"],
setup_requires=["Cython>=3.0.0a11"],
python_requires=">=3.5",
ext_modules=cythonize(
Extension(
"cybase122",
["cybase122.pyx"],
language="c++",
# consider including -march=native if it makes a speed difference
# and if portability isn't a concern for users
extra_compile_args=["-Wno-sign-compare", "-flto", "-pipe"],
compiler_directives={"language_level": 3, "infer_types": True},
)
),
)