-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
46 lines (39 loc) · 1.47 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
from setuptools import setup, Extension, find_packages
with open("README.rst", "r") as fh:
long_description = fh.read()
extra_compile_args = []
if os.name == 'posix':
# Assume a gcc/clang-compatible CLI and enable C99 on old compilers
extra_compile_args.append('-std=c99')
ext_modules = [
Extension('pickle5._pickle',
['pickle5/_pickle.c', 'pickle5/picklebufobject.c'],
depends=['pickle5/picklebufobject.h',
'pickle5/compat.h'],
extra_compile_args=extra_compile_args),
]
setup(
name="pickle5",
version="0.0.12",
author="Antoine Pitrou",
author_email="antoine@python.org",
description="Backport of the pickle 5 protocol (PEP 574) and other pickle changes",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/pitrou/pickle5-backport",
packages=find_packages(),
ext_modules=ext_modules,
python_requires='>=3.5, <3.8',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Python Software Foundation License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
],
)