[0.3.x] fixed : issue #13897 ( pykd import error on python 3 )

git-svn-id: https://pykd.svn.codeplex.com/svn@90980 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2016-04-28 08:07:53 +00:00 committed by Mikhail I. Izmestev
parent 08d0cc8bfd
commit 533c0af724
2 changed files with 10 additions and 4 deletions

9
setup/__init__.py Normal file
View File

@ -0,0 +1,9 @@
import sys
if sys.version_info >= ( 3, 0 ):
from pykd.pykd import *
else:
from pykd import *
__version__ = pykd.__version__
__file__ = pykd.__file__

View File

@ -27,10 +27,7 @@ def makeWheel(args):
shutil.rmtree(package_dir)
os.mkdir(package_dir)
with open(os.path.join(package_dir, '__init__.py'),'w') as f:
f.write("from pykd import *\n")
f.write("__version__ = pykd.__version__\n")
f.write("__file__ = pykd.__file__\n")
shutil.copy("__init__.py", package_dir)
bin_dir = os.path.join( os.path.curdir, '..', 'bin')
pykd_dir = os.path.join( os.path.curdir, '..', 'out')