[0.3.x] updated : build scripts

git-svn-id: https://pykd.svn.codeplex.com/svn@90667 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2015-06-09 08:26:48 +00:00 committed by Mikhail I. Izmestev
parent 5025a7c05b
commit 8eab57aa3c
2 changed files with 9 additions and 1 deletions

4
setup/buildall.cmd Normal file
View File

@ -0,0 +1,4 @@
python setup.py bdist_zip --plat-name=win32
python setup.py bdist_zip --plat-name=win-amd64
python setup.py bdist_wheel --plat-name=win32
python setup.py bdist_wheel --plat-name=win-amd64

View File

@ -8,7 +8,7 @@ import zipfile
_name = "pykd" _name = "pykd"
_desc = "python windbg extension" _desc = "python windbg extension"
_version = '0.3.0.25' _version = '0.3.0.26'
def makeWheel(args): def makeWheel(args):
@ -91,6 +91,10 @@ def makeZip(args):
shutil.copy( os.path.join(pykd_dir, 'pykd.pyd'), os.path.join(package_dir, 'pykd.pyd') ) shutil.copy( os.path.join(pykd_dir, 'pykd.pyd'), os.path.join(package_dir, 'pykd.pyd') )
dist_dir = os.path.join(os.path.curdir, 'dist')
if not os.path.exists(dist_dir):
os.mkdir(dist_dir)
with zipfile.ZipFile(os.path.join(os.path.curdir, 'dist', zip_name), mode='w' ) as archive: with zipfile.ZipFile(os.path.join(os.path.curdir, 'dist', zip_name), mode='w' ) as archive:
for srcFile in os.listdir(package_dir): for srcFile in os.listdir(package_dir):
print "zipped %s" % (srcFile) print "zipped %s" % (srcFile)