-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
22 lines (19 loc) · 835 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
from subprocess import Popen, PIPE
WVBUILD='../wvbuild'
WVSTREAMS="%s/wvstreams/include" % WVBUILD
WVSTREAMSLIB="%s/%s-linux" % (WVBUILD,
Popen(['uname', '-m'], stdout=PIPE).communicate()[0].rstrip())
includes = [WVSTREAMS, "%s/include" % WVSTREAMSLIB,
"/usr/include/wvstreams", "/usr/include/xplc-0.3.13",
"/usr/local/include/wvstreams"]
_wvcsv_mod = Extension('_wvcsv',
sources=['_wvcsv.cc',
'wvcsv.cc'],
include_dirs=includes + ['../cli'],
library_dirs=[WVSTREAMSLIB],
libraries=['wvbase', 'wvutils', 'wvstreams'])
setup(name='Python_WvCsv',
version='0.1',
description='WvCsv bindings for Python',
ext_modules=[_wvcsv_mod])