From 1f842ba16c7b991994d5b72ada4ec419dfc0b689 Mon Sep 17 00:00:00 2001 From: Zihao Ye Date: Mon, 29 Jan 2024 00:34:40 +0800 Subject: [PATCH] add version.txt as package data --- python/setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/setup.py b/python/setup.py index 9dbbe9c9..6b8cd0ba 100644 --- a/python/setup.py +++ b/python/setup.py @@ -120,4 +120,6 @@ def remove_unwanted_pytorch_nvcc_flags(): python_requires=">=3.9", ext_modules=ext_modules, cmdclass={"build_ext": torch_cpp_ext.BuildExtension}, + package_data={'': ["../version.txt"]}, + include_package_data=True )