Update setup.py to correctly pick up Python files

And also re-update package name in utils/build-dists.py so that it is
uninstalled successfully

Signed-off-by: Rushi Agrawal <[email protected]>
This commit is contained in:
Rushi Agrawal
2021-09-19 18:18:09 -07:00
committed by Vijayan Balasubramanian
parent 2dc1992032
commit eaa0cd8765
2 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -41,10 +41,11 @@ with open(join(base_dir, package_name.replace("-", ""), "_version.py")) as f:
with open(join(base_dir, "README.md")) as f:
long_description = f.read().strip()
module_dir = package_name.replace("-", "")
packages = [
package
for package in find_packages(where=".", exclude=("test_opensearchpy*",))
if package == package_name or package.startswith(package_name + ".")
if package == module_dir or package.startswith(module_dir + ".")
]
install_requires = [