Mercurial > pymonkey
comparison setup.py @ 97:409cff0c7afb
Added an experimental setup.py.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sat, 15 Aug 2009 10:41:24 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
96:3570ab12747b | 97:409cff0c7afb |
---|---|
1 import os | |
2 import sys | |
3 from distutils.core import setup, Extension | |
4 | |
5 SOURCE_FILES = ['pymonkey.cpp', | |
6 'utils.cpp', | |
7 'object.cpp', | |
8 'function.cpp', | |
9 'undefined.cpp', | |
10 'context.cpp', | |
11 'runtime.cpp'] | |
12 | |
13 SPIDERMONKEY_DIR = os.path.abspath(os.path.join('spidermonkey', 'obj')) | |
14 | |
15 if not os.path.exists(SPIDERMONKEY_DIR): | |
16 print('WARNING: Spidermonkey objdir not found at %s.' % SPIDERMONKEY_DIR) | |
17 print('Some build tasks may not run properly.\n') | |
18 | |
19 INCLUDE_DIRS = [os.path.join(SPIDERMONKEY_DIR, 'dist', 'include')] | |
20 LIB_DIRS = [os.path.join(SPIDERMONKEY_DIR)] | |
21 | |
22 setup(name='pymonkey', | |
23 version='0.0.1', | |
24 description='Access SpiderMonkey from Python', | |
25 author='Atul Varma', | |
26 author_email='atul@mozilla.com', | |
27 url='http://www.toolness.com', | |
28 ext_modules=[Extension('pymonkey', | |
29 SOURCE_FILES, | |
30 include_dirs = INCLUDE_DIRS, | |
31 library_dirs = LIB_DIRS, | |
32 libraries = ['js_static'])] | |
33 ) |