-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
22 lines (20 loc) · 921 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
from distutils.core import setup, Extension
import os
xdelta_dir = os.path.join(os.environ['HOME'], 'xdelta-src')
xdelta3_c_src = os.path.join(xdelta_dir, 'xdelta3.c')
setup(name='xdelta3',
version='0.1',
description='Python interface for xdelta',
author='Romulo Ceccon',
author_email='romuloceccon@gmail.com',
py_modules=['xdelta3'],
package_dir={'': 'lib'},
ext_modules=[Extension('_xdelta3',
['src/python_xdelta3.c', xdelta3_c_src],
include_dirs=[xdelta_dir],
define_macros=[('HAVE_CONFIG_H', None),
('XD3_MAIN', '0'),
('XD3_POSIX', '1'),
('EXTERNAL_COMPRESSION', '0'),
('XD3_USE_LARGEFILE64', '1')])],
)