From 7f590624e8a8be5048b72ec44a3f3bc77dd08f2b Mon Sep 17 00:00:00 2001 From: Zihao Ye Date: Mon, 29 Jan 2024 00:54:26 +0800 Subject: [PATCH] MANYFEST.in --- MANIFEST.in | 10 ++++++++++ python/MANIFEST.in | 10 ++++++++++ python/setup.py | 2 -- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 MANIFEST.in create mode 100644 python/MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..c3998f2b --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,10 @@ +# sdist & wheel +include ../version.txt +recursive-include ../include * + +# wheel-only +exclude flashinfer/_build_meta.py + +# Unneeded files +prune */__pycache__ +global-exclude *.so \ No newline at end of file diff --git a/python/MANIFEST.in b/python/MANIFEST.in new file mode 100644 index 00000000..c3998f2b --- /dev/null +++ b/python/MANIFEST.in @@ -0,0 +1,10 @@ +# sdist & wheel +include ../version.txt +recursive-include ../include * + +# wheel-only +exclude flashinfer/_build_meta.py + +# Unneeded files +prune */__pycache__ +global-exclude *.so \ No newline at end of file diff --git a/python/setup.py b/python/setup.py index 6b8cd0ba..9dbbe9c9 100644 --- a/python/setup.py +++ b/python/setup.py @@ -120,6 +120,4 @@ 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 )