-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (43 loc) · 1.33 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env python
# $yfId$
import sys
import os
import os.path
import platform
from distutils.core import setup
from Cython.Distutils.extension import Extension
from Cython.Distutils import build_ext
from distutils.command.build import build as _build
from distutils.cmd import Command
import primptrgen
class build(_build):
sub_commands = [('pre_build', None)] + _build.sub_commands
class pre_build(Command):
description = "run pre-build jobs"
user_options = []
boolean_options = []
help_opthons = []
def initialize_options(self):
return
def finalize_options(self):
return
def run(self):
primptrgen.main()
extensions = [
Extension('cwrapper.cobj',['cwrapper/cobj.pyx']),
Extension('cwrapper.primptr',['cwrapper/primptr.pyx']),
Extension('cwrapper.genprimptr',['cwrapper/genprimptr.pyx'])]
setup(name='cwrapper',
version='0.98.3',
description= 'Base Class to help writing wrapper for pointer of '
'C structure with Cython',
author='Yasuhito FUTATSUKI',
author_email='[email protected]',
license="BSD 2 clause",
packages = ['cwrapper'],
package_data = { 'cwrapper': ['*.pxd'] },
ext_modules = extensions,
cmdclass = {'pre_build' : pre_build,
'build' : build,
'build_ext' : build_ext}
)