import setuptools
from os import walk, path
data_files = [("bin", ["node-linux-x64/bin/node"])]
for (dirpath, dirnames, filenames) in walk("./nni"):
files = [path.normpath(path.join(dirpath, filename)) for filename in filenames]
data_files.append((path.normpath(dirpath), files))
After Change
else:
raise NotImplementedError("current platform {} not supported".format(os_type))
data_files = [("bin", ["node-{}-x64/bin/node".format(os_type.lower())])]
for (dirpath, dirnames, filenames) in walk("./nni"):
files = [path.normpath(path.join(dirpath, filename)) for filename in filenames]
data_files.append((path.normpath(dirpath), files))