-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (28 loc) · 694 Bytes
/
Copy pathsetup.py
File metadata and controls
36 lines (28 loc) · 694 Bytes
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
#!/usr/bin/env python
"""
setup.py file for seekgzip
"""
import sys
import os.path
import os; os.environ['CC'] = 'g++'; os.environ['CXX'] = 'g++';
os.environ['CPP'] = 'g++'; os.environ['LDSHARED'] = 'g++'
from distutils.core import setup, Extension
seekgzip_module = Extension(
'_seekgzip',
sources = [
'seekgzip.c',
'export.cpp',
'export_python.cpp',
],
libraries=['z'],
extra_link_args=['-shared'],
language='c++',
)
setup(
name = '@PACKAGE@',
version = '@VERSION@',
author = 'Naoaki Okazaki',
description = """SeekGzip Python module""",
ext_modules = [seekgzip_module],
py_modules = ["seekgzip"],
)