This repository was archived by the owner on May 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (33 loc) · 1.32 KB
/
setup.py
File metadata and controls
35 lines (33 loc) · 1.32 KB
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
from distutils.core import setup, Extension
import platform
osname = platform.system()
shared_libs = []
if osname == "Windows":
defines = [ ('WIN32',None),
("_CRT_SECURE_NO_DEPRECATE",None),
("_CRT_NONSTDC_NO_DEPRECATE",None)]
else:
defines = []
sources = [ 'pype.cpp', 'pe.cpp', 'util/strconv.cpp',
'util/filemap.cpp', 'util/memhelp.cpp']
module1 = Extension('pype',
sources = sources,
include_dirs = ['./util', './struct'],
define_macros = defines,
#library_dirs=[r'c:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib',
# "../build"],
#library_dirs = ["../build"],
libraries = shared_libs,
extra_objects = [],
#extra_compile_args=["/MT", "/W3", "/Od", "/Oy", "/Zi"],
#extra_compile_args=["/Od","/Zi"],
#extra_link_args=["/nologo",
# "/debug",
# "/incremental:no",
# "/opt:ref",
# ]
)
setup ( name = 'pype',
version = '0.4',
description = 'Python module wrapping libpe',
ext_modules = [module1])