diff --git a/bindings/python/Makefile b/bindings/python/Makefile index 5b026560..586708ac 100644 --- a/bindings/python/Makefile +++ b/bindings/python/Makefile @@ -23,7 +23,7 @@ install3: # NOTE: Newer cython can be installed by: sudo pip install --upgrade cython install_cython: - rm -rf $(OBJDIR) src/ + rm -rf $(OBJDIR) src/ dist/ rm -rf prebuilt/win64/capstone.dll rm -rf prebuilt/win32/capstone.dll mkdir -p $(OBJDIR)/pyx @@ -52,7 +52,7 @@ install_cython: # build & upload PyPi package with source code of the core sdist: - rm -rf src/ + rm -rf src/ dist/ rm -rf prebuilt/win64/capstone.dll rm -rf prebuilt/win32/capstone.dll cp README.pypi-src README @@ -61,7 +61,7 @@ sdist: # build & upload PyPi package with source code of the core sdist3: - rm -rf src/ + rm -rf src/ dist/ rm -rf prebuilt/win64/capstone.dll rm -rf prebuilt/win32/capstone.dll cp README.pypi-src README @@ -71,7 +71,7 @@ sdist3: # build & upload PyPi package with prebuilt core # NOTE: be sure to have precompiled core under prebuilt/win*/ beforehand sdist_win: - rm -rf src/ + rm -rf src/ dist/ cp README.pypi-win README cp PKG-INFO.win PKG-INFO python setup.py sdist register upload @@ -79,13 +79,13 @@ sdist_win: # build & upload PyPi package with prebuilt core # NOTE: be sure to have precompiled core under prebuilt/win*/ beforehand sdist3_win: - rm -rf src/ + rm -rf src/ dist/ cp README.pypi-win README cp PKG-INFO.win PKG-INFO python3 setup.py sdist register upload clean: - rm -rf $(OBJDIR) src/ README + rm -rf $(OBJDIR) src/ dist/ README rm -f capstone/*.so rm -rf prebuilt/win64/capstone.dll rm -rf prebuilt/win32/capstone.dll diff --git a/bindings/python/README.pypi-win b/bindings/python/README.pypi-win index 0ed566a5..ecb59f32 100644 --- a/bindings/python/README.pypi-win +++ b/bindings/python/README.pypi-win @@ -1,4 +1,5 @@ -NOTE: This package "capstone_win" includes prebuilt Windows core of Capstone. +NOTE: This package includes prebuilt Windows core of Capstone, so no external +Capstone library is needed. To compile from source, see package "capstone". -------------------------------------------------------------------------------- diff --git a/bindings/python/setup.py b/bindings/python/setup.py index fbb7be98..eeccf063 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -17,10 +17,10 @@ from distutils.sysconfig import get_python_lib PATH_LIB64 = "prebuilt/win64/capstone.dll" PATH_LIB32 = "prebuilt/win32/capstone.dll" -# package name can be 'capstone' or 'capstone_win' +# package name can be 'capstone' or 'capstone-win' PKG_NAME = 'capstone' if os.path.exists(PATH_LIB64) and os.path.exists(PATH_LIB32): - PKG_NAME = 'capstone_win' + PKG_NAME = 'capstone-windows' SYSTEM = sys.platform VERSION = '4.0'