python: rename Windows package from capstone-win to capstone-windows

test2
Nguyen Anh Quynh 10 years ago
parent 42e8388b61
commit a87c0b01ad
  1. 12
      bindings/python/Makefile
  2. 3
      bindings/python/README.pypi-win
  3. 4
      bindings/python/setup.py

@ -23,7 +23,7 @@ install3:
# NOTE: Newer cython can be installed by: sudo pip install --upgrade cython # NOTE: Newer cython can be installed by: sudo pip install --upgrade cython
install_cython: install_cython:
rm -rf $(OBJDIR) src/ rm -rf $(OBJDIR) src/ dist/
rm -rf prebuilt/win64/capstone.dll rm -rf prebuilt/win64/capstone.dll
rm -rf prebuilt/win32/capstone.dll rm -rf prebuilt/win32/capstone.dll
mkdir -p $(OBJDIR)/pyx mkdir -p $(OBJDIR)/pyx
@ -52,7 +52,7 @@ install_cython:
# build & upload PyPi package with source code of the core # build & upload PyPi package with source code of the core
sdist: sdist:
rm -rf src/ rm -rf src/ dist/
rm -rf prebuilt/win64/capstone.dll rm -rf prebuilt/win64/capstone.dll
rm -rf prebuilt/win32/capstone.dll rm -rf prebuilt/win32/capstone.dll
cp README.pypi-src README cp README.pypi-src README
@ -61,7 +61,7 @@ sdist:
# build & upload PyPi package with source code of the core # build & upload PyPi package with source code of the core
sdist3: sdist3:
rm -rf src/ rm -rf src/ dist/
rm -rf prebuilt/win64/capstone.dll rm -rf prebuilt/win64/capstone.dll
rm -rf prebuilt/win32/capstone.dll rm -rf prebuilt/win32/capstone.dll
cp README.pypi-src README cp README.pypi-src README
@ -71,7 +71,7 @@ sdist3:
# build & upload PyPi package with prebuilt core # build & upload PyPi package with prebuilt core
# NOTE: be sure to have precompiled core under prebuilt/win*/ beforehand # NOTE: be sure to have precompiled core under prebuilt/win*/ beforehand
sdist_win: sdist_win:
rm -rf src/ rm -rf src/ dist/
cp README.pypi-win README cp README.pypi-win README
cp PKG-INFO.win PKG-INFO cp PKG-INFO.win PKG-INFO
python setup.py sdist register upload python setup.py sdist register upload
@ -79,13 +79,13 @@ sdist_win:
# build & upload PyPi package with prebuilt core # build & upload PyPi package with prebuilt core
# NOTE: be sure to have precompiled core under prebuilt/win*/ beforehand # NOTE: be sure to have precompiled core under prebuilt/win*/ beforehand
sdist3_win: sdist3_win:
rm -rf src/ rm -rf src/ dist/
cp README.pypi-win README cp README.pypi-win README
cp PKG-INFO.win PKG-INFO cp PKG-INFO.win PKG-INFO
python3 setup.py sdist register upload python3 setup.py sdist register upload
clean: clean:
rm -rf $(OBJDIR) src/ README rm -rf $(OBJDIR) src/ dist/ README
rm -f capstone/*.so rm -f capstone/*.so
rm -rf prebuilt/win64/capstone.dll rm -rf prebuilt/win64/capstone.dll
rm -rf prebuilt/win32/capstone.dll rm -rf prebuilt/win32/capstone.dll

@ -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". To compile from source, see package "capstone".
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

@ -17,10 +17,10 @@ from distutils.sysconfig import get_python_lib
PATH_LIB64 = "prebuilt/win64/capstone.dll" PATH_LIB64 = "prebuilt/win64/capstone.dll"
PATH_LIB32 = "prebuilt/win32/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' PKG_NAME = 'capstone'
if os.path.exists(PATH_LIB64) and os.path.exists(PATH_LIB32): if os.path.exists(PATH_LIB64) and os.path.exists(PATH_LIB32):
PKG_NAME = 'capstone_win' PKG_NAME = 'capstone-windows'
SYSTEM = sys.platform SYSTEM = sys.platform
VERSION = '4.0' VERSION = '4.0'

Loading…
Cancel
Save