forked from markreidvfx/pyaaf_old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (26 loc) · 1019 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
30
31
32
33
34
35
36
from distutils.core import setup, Extension
import os
import glob
AAFSDK_ROOT = os.environ.get('AAFSDK_ROOT', '/usr')
BOOST_ROOT = os.environ.get('BOOST_ROOT', '/usr')
include_dirs = ['axLib',
'include',
os.path.join(BOOST_ROOT, 'include'),
os.path.join(AAFSDK_ROOT, 'include')
]
library_dirs = [ os.path.join(BOOST_ROOT, 'lib'),
os.path.join(AAFSDK_ROOT, 'lib') ]
#this might be boost_python
libraries = [ 'boost_python-mt' ]
axLib_source_files = glob.glob('axLib/*.cpp')
pyaaf_source_files = glob.glob('src/*.cpp')
source_files = []
source_files.extend(axLib_source_files)
source_files.extend(pyaaf_source_files)
setup( name="pyaaf",
version='0.0.1',
packages=['pyaaf'],
ext_modules=[Extension( 'pyaaf.core', source_files,
include_dirs=include_dirs,
library_dirs=library_dirs,
libraries=libraries )] )