资源简介
安装Sulley所需要的资源包。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
代码片段和文件信息
#!/usr/bin/env python
# Copyright (c) 2009 Mario Vilas
# Rob Ruana 2010
# Gil Dabah
# All rights reserved.
# Licensed under BSD.
#
__revision__ = “$Id: setup.py 603 2010-01-31 00:11:05Z qvasimodo $“
import os
import platform
import string
import shutil
import sys
from glob import glob
from distutils import log
from distutils.command.build import build
from distutils.command.build_clib import build_clib
from distutils.command.clean import clean
from distutils.command.install_lib import install_lib
from distutils.command.sdist import sdist
from distutils.core import setup Extension
from distutils.errors import DistutilsSetupError
from shutil import ignore_patterns
def get_sources():
“““Returns a list of C source files that should be compiled to
create the libdistorm3 library.
“““
return glob(‘src/*.c‘)
class custom_build(build):
“““Customized build command“““
def run(self):
log.info(‘running custom_build‘)
build.run(self)
class custom_build_clib(build_clib):
“““Customized build_clib command
This custom_build_clib will create dynamically linked libraries rather
than statically linked libraries. In addition it places the compiled
libraries alongside the python packages to facilitate the use of ctypes.
“““
def finalize_options (self):
# We want build-clib to default to build-lib as defined by the
# “build“ command. This is so the compiled library will be put
# in the right place along side the python code.
self.set_undefined_options(‘build‘
(‘build_lib‘ ‘build_clib‘)
(‘build_temp‘ ‘build_temp‘)
(‘compiler‘ ‘compiler‘)
(‘debug‘ ‘debug‘)
(‘force‘ ‘force‘))
self.libraries = self.distribution.libraries
if self.libraries: # In Python 3.0 they have a bug in check_library_list comment it out then.
self.check_library_list(self.libraries)
if self.include_dirs is None:
self.include_dirs = self.distribution.include_dirs or []
if type(self.include_dirs) in (bytes str):
self.include_dirs = string.split(self.include_dirs
os.pathsep)
def get_source_files_for_lib(self lib_name build_info):
sources = build_info.get(‘sources‘ [])
if hasattr(sources ‘__call__‘):
sources = sources()
if (sources is None or
type(sources) not in (list tuple) or
len(sources) == 0):
raise DistutilsSetupError (“in ‘libraries‘ option (library ‘%s‘) ‘sources‘ must be present and must be a list of source filenames“) % lib_name
return sources
def get_source_files(self):
self.check_library_list(s
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1685 2016-05-28 17:29 distorm3-3.3.4\COPYING
文件 1201 2016-06-04 14:58 distorm3-3.3.4\PKG-INFO
文件 114 2015-08-27 18:46 distorm3-3.3.4\setup.cfg
文件 10166 2016-06-04 14:57 distorm3-3.3.4\setup.py
文件 19536 2016-05-28 17:59 distorm3-3.3.4\include\distorm.h
文件 22674 2016-05-28 19:22 distorm3-3.3.4\include\mnemonics.h
文件 1851 2016-05-28 19:38 distorm3-3.3.4\python\distorm3\sample.py
文件 44580 2016-06-04 14:37 distorm3-3.3.4\python\distorm3\__init__.py
文件 4404 2016-06-04 14:55 distorm3-3.3.4\src\config.h
文件 25059 2016-05-28 17:47 distorm3-3.3.4\src\decoder.c
文件 1058 2015-08-27 18:46 distorm3-3.3.4\src\decoder.h
文件 13127 2016-05-28 17:58 distorm3-3.3.4\src\distorm.c
文件 24718 2016-05-28 18:40 distorm3-3.3.4\src\instructions.c
文件 17569 2016-05-28 17:47 distorm3-3.3.4\src\instructions.h
文件 209309 2016-05-28 19:20 distorm3-3.3.4\src\insts.c
文件 1962 2016-05-28 17:47 distorm3-3.3.4\src\insts.h
文件 24295 2016-05-28 19:22 distorm3-3.3.4\src\mnemonics.c
文件 45685 2016-05-28 17:47 distorm3-3.3.4\src\operands.c
文件 738 2016-05-28 17:47 distorm3-3.3.4\src\operands.h
文件 12423 2016-05-28 17:47 distorm3-3.3.4\src\prefix.c
文件 2411 2016-05-28 17:47 distorm3-3.3.4\src\prefix.h
文件 6615 2016-05-28 17:47 distorm3-3.3.4\src\textdefs.c
文件 1444 2016-05-28 17:47 distorm3-3.3.4\src\textdefs.h
文件 935 2016-05-28 17:47 distorm3-3.3.4\src\wstring.c
文件 1057 2016-05-28 17:47 distorm3-3.3.4\src\wstring.h
文件 2109 2016-05-28 17:47 distorm3-3.3.4\src\x86defs.h
评论
共有 条评论