-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (25 loc) · 786 Bytes
/
setup.py
File metadata and controls
28 lines (25 loc) · 786 Bytes
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
from distutils.core import setup, Extension
from os.path import isfile
try:
if isfile("MANIFEST"):
os.unlink("MANIFEST")
except:
pass
ext_modules = [
Extension('pymruby', ['src/pymruby.c'],
extra_compile_args = ['-g', '-fPIC', '-DMRB_ENABLE_DEBUG_HOOK'],
library_dirs = ['mruby/build/host/lib'],
include_dirs = ['mruby/include'],
extra_objects = ['mruby/build/host/lib/libmruby.a'],
depends = ['src/pymruby.h'])
]
setup(name = 'pymruby',
version = '0.2',
description = 'Python binding for mruby',
author = 'Jason Snell',
author_email = 'jason@snell.io',
url = 'http://www.ruby.dj',
license = 'MIT',
ext_package = '',
ext_modules = ext_modules
)