forked from Yelp/gc_freeze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
29 lines (21 loc) · 770 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
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import platform
import sys
from setuptools import Extension
from setuptools import setup
assert platform.python_implementation() == 'CPython', 'Not compatible with non-CPython implementations.'
assert sys.version_info < (3, 7), 'Not compatible with CPython 3.7 and above.'
gc_freeze = Extension(
name=str('gc_freeze'),
sources=[str('src/init.c'), str('src/freeze.c'), str('src/util.c')],
include_dirs=[str('src/')],
)
setup(
name=str('gc-freeze'),
version=str('1.1.0'),
description=str('Garbage collection freezing packaged as an extension for versions of Python before 3.7.'),
platforms=str('all'),
ext_modules=[gc_freeze],
)