2015-03-09 11:28:04 +00:00
|
|
|
import os
|
|
|
|
from distutils.core import setup, Extension
|
|
|
|
|
|
|
|
|
2015-03-09 21:16:02 +00:00
|
|
|
duktape = Extension('dukpy._dukpy',
|
2015-04-26 20:53:06 +00:00
|
|
|
define_macros=[('DUK_OPT_DEEP_C_STACK', '1')],
|
2015-03-09 21:16:02 +00:00
|
|
|
sources=[os.path.join('duktape', 'duktape.c'),
|
|
|
|
'pyduktape.c'],
|
2015-03-09 11:28:04 +00:00
|
|
|
include_dirs=[os.path.join('.', 'duktape')])
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name='dukpy',
|
2015-03-09 21:16:02 +00:00
|
|
|
version='0.0.1',
|
|
|
|
description='Simple JavaScript interpreter for Python',
|
|
|
|
packages=['dukpy'],
|
|
|
|
ext_modules=[duktape],
|
|
|
|
package_data={
|
|
|
|
'dukpy': ['*.js'],
|
|
|
|
}
|
2015-03-09 11:28:04 +00:00
|
|
|
)
|