python: cleanup setup*.py

This commit is contained in:
Nguyen Anh Quynh 2014-01-09 09:29:36 +08:00
parent 3079ed61cb
commit 58a3e3e5ad
2 changed files with 2 additions and 4 deletions

View File

@ -5,8 +5,7 @@ from distutils.core import setup
VERSION = '2.0'
# clean package directory first
import sys, os.path
import shutil
import os.path, shutil, sys
for f in sys.path:
if f.endswith('packages'):
pkgdir = os.path.join(f, 'capstone')

View File

@ -21,8 +21,7 @@ ext_modules = [ Extension("capstone.capstone", ["pyx/capstone.pyx"], extra_compi
]
# clean package directory first
import sys, os.path
import shutil
import os.path, shutil, sys
for f in sys.path:
if f.endswith('packages'):
pkgdir = os.path.join(f, 'capstone')