mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-24 05:59:45 +00:00
python: cleanup setup*.py
This commit is contained in:
parent
3079ed61cb
commit
58a3e3e5ad
@ -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')
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user