mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[0.3.x] fixed : working with msdia without registration
git-svn-id: https://pykd.svn.codeplex.com/svn@89257 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
03f84d314b
commit
60a98fc7a2
@ -2,7 +2,7 @@
|
|||||||
#define PYKD_VERSION_MAJOR 0
|
#define PYKD_VERSION_MAJOR 0
|
||||||
#define PYKD_VERSION_MINOR 3
|
#define PYKD_VERSION_MINOR 3
|
||||||
#define PYKD_VERSION_SUBVERSION 0
|
#define PYKD_VERSION_SUBVERSION 0
|
||||||
#define PYKD_VERSION_BUILDNO 11
|
#define PYKD_VERSION_BUILDNO 12
|
||||||
|
|
||||||
#define __VER_STR2__(x) #x
|
#define __VER_STR2__(x) #x
|
||||||
#define __VER_STR1__(x) __VER_STR2__(x)
|
#define __VER_STR1__(x) __VER_STR2__(x)
|
||||||
|
4
setup/pykd/__init__.py
Normal file
4
setup/pykd/__init__.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
from pykd import *
|
||||||
|
__version__ = pykd.__version__
|
||||||
|
__file__ = pykd.__file__
|
||||||
|
|
@ -1,25 +1,35 @@
|
|||||||
|
|
||||||
from setuptools import setup, Extension
|
from setuptools import setup
|
||||||
|
from setuptools.dist import Distribution
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('cmd', choices=['bdist_egg', 'bdist', 'install'])
|
parser.add_argument('cmd', choices=['bdist_egg', 'bdist', 'bdist_wheel', 'install', 'clean'])
|
||||||
parser.add_argument('--plat-name', default=pkg_resources.get_build_platform() )
|
parser.add_argument('--plat-name', default=pkg_resources.get_build_platform() )
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
pkg_dir = { 'win32' : 'src/x86', 'win-amd64' : 'src/x64' }.get( args.plat_name )
|
pkg_dir = { 'win32' : 'pykd_x86', 'win-amd64' : 'pykd_x64' }.get( args.plat_name )
|
||||||
|
|
||||||
|
class BinaryDistribution(Distribution):
|
||||||
|
def is_pure(self):
|
||||||
|
return False
|
||||||
|
|
||||||
|
_name = "pykd"
|
||||||
|
_version = "0.3.0.11"
|
||||||
|
_desc = "python windbg extension"
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = "pykd",
|
name = _name,
|
||||||
version = "0.3.0.11",
|
version = _version,
|
||||||
description = "python windbg extension",
|
description = _desc,
|
||||||
package_dir = { '' : pkg_dir},
|
packages = ['pykd'],
|
||||||
packages = [''],
|
package_dir = {'pykd': pkg_dir},
|
||||||
package_data = { '' :["*.pyd", "*.dll"]},
|
package_data = { 'pykd' :["*.pyd", "*.dll"]},
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe = False,
|
zip_safe = False,
|
||||||
ext_modules = [Extension('pykd', [])],
|
distclass = BinaryDistribution,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user