mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-03-04 20:39:50 +00:00
Merge branch 'pypi' of https://github.com/aquynh/capstone into python
This commit is contained in:
commit
8ad6f02884
@ -34,7 +34,8 @@ def get_sources():
|
||||
result = []
|
||||
for root, _, files in os.walk("./src/"):
|
||||
for name in files:
|
||||
if name.endswith(".c"):
|
||||
if name.endswith(".c") or name.endswith(".h") or \
|
||||
name.endswith(".inc") or root == "./src/":
|
||||
result.append(os.path.join(root, name))
|
||||
|
||||
return result
|
||||
@ -55,12 +56,21 @@ class custom_sdist(sdist):
|
||||
"""
|
||||
result = []
|
||||
|
||||
dir_util.remove_tree("src/")
|
||||
try:
|
||||
dir_util.remove_tree("src/")
|
||||
except:
|
||||
pass
|
||||
dir_util.copy_tree("../../arch", "src/arch/")
|
||||
dir_util.copy_tree("../../include", "src/include/")
|
||||
dir_util.copy_tree("../../msvc/headers", "src/msvc/headers/")
|
||||
|
||||
result.extend(glob.glob("../../*.[ch]"))
|
||||
result.extend(glob.glob("../../*.mk"))
|
||||
result.extend(glob.glob("../../Makefile"))
|
||||
result.extend(glob.glob("../../LICENSE*"))
|
||||
result.extend(glob.glob("../../README"))
|
||||
result.extend(glob.glob("../../*.TXT"))
|
||||
result.extend(glob.glob("../../RELEASE_NOTES"))
|
||||
|
||||
for filename in result:
|
||||
outpath = os.path.join("./src/", os.path.basename(filename))
|
||||
@ -168,6 +178,7 @@ setup(
|
||||
classifiers=[
|
||||
'License :: OSI Approved :: BSD License',
|
||||
'Programming Language :: Python :: 2',
|
||||
'Programming Language :: Python :: 3',
|
||||
],
|
||||
requires=['ctypes'],
|
||||
cmdclass=dict(
|
||||
|
Loading…
x
Reference in New Issue
Block a user