|
|
@@ -129,6 +129,7 @@ package_data = { |
|
|
'*.so*', |
|
|
'*.so*', |
|
|
'*.pyd', |
|
|
'*.pyd', |
|
|
'*.dll', |
|
|
'*.dll', |
|
|
|
|
|
'bin/*', |
|
|
'lib/*.so*', |
|
|
'lib/*.so*', |
|
|
'lib/*.a', |
|
|
'lib/*.a', |
|
|
'lib/*.dylib*', |
|
|
'lib/*.dylib*', |
|
|
@@ -161,24 +162,6 @@ def update_permissions(path): |
|
|
file_fullpath = os.path.join(dirpath, filename) |
|
|
file_fullpath = os.path.join(dirpath, filename) |
|
|
os.chmod(file_fullpath, stat.S_IREAD) |
|
|
os.chmod(file_fullpath, stat.S_IREAD) |
|
|
|
|
|
|
|
|
def bin_files(): |
|
|
|
|
|
""" |
|
|
|
|
|
Gets the binary files to be installed. |
|
|
|
|
|
""" |
|
|
|
|
|
data_files = [] |
|
|
|
|
|
binary_files = [] |
|
|
|
|
|
|
|
|
|
|
|
cache_server_bin = os.path.join('mindspore', 'bin', 'cache_server') |
|
|
|
|
|
if not os.path.exists(cache_server_bin): |
|
|
|
|
|
return data_files |
|
|
|
|
|
binary_files.append(cache_server_bin) |
|
|
|
|
|
cache_admin_bin = os.path.join('mindspore', 'bin', 'cache_admin') |
|
|
|
|
|
if not os.path.exists(cache_admin_bin): |
|
|
|
|
|
return data_files |
|
|
|
|
|
binary_files.append(cache_admin_bin) |
|
|
|
|
|
data_files.append(('bin', binary_files)) |
|
|
|
|
|
return data_files |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EggInfo(egg_info): |
|
|
class EggInfo(egg_info): |
|
|
"""Egg info.""" |
|
|
"""Egg info.""" |
|
|
@@ -215,7 +198,6 @@ setup( |
|
|
'framework that could be used for mobile, edge and cloud scenarios.', |
|
|
'framework that could be used for mobile, edge and cloud scenarios.', |
|
|
long_description="\n\n".join([readme, release]), |
|
|
long_description="\n\n".join([readme, release]), |
|
|
long_description_content_type="text/markdown", |
|
|
long_description_content_type="text/markdown", |
|
|
data_files=bin_files(), |
|
|
|
|
|
packages=find_packages(), |
|
|
packages=find_packages(), |
|
|
package_data=package_data, |
|
|
package_data=package_data, |
|
|
include_package_data=True, |
|
|
include_package_data=True, |
|
|
@@ -223,6 +205,11 @@ setup( |
|
|
'egg_info': EggInfo, |
|
|
'egg_info': EggInfo, |
|
|
'build_py': BuildPy, |
|
|
'build_py': BuildPy, |
|
|
}, |
|
|
}, |
|
|
|
|
|
entry_points={ |
|
|
|
|
|
'console_scripts': [ |
|
|
|
|
|
'cache_admin=mindspore.dataset.engine.cache_admin:main', |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
python_requires='>=3.7', |
|
|
python_requires='>=3.7', |
|
|
install_requires=required_package, |
|
|
install_requires=required_package, |
|
|
classifiers=[ |
|
|
classifiers=[ |
|
|
|