From b3e7673c35735d78a2d3e9103944d3f7d00d8194 Mon Sep 17 00:00:00 2001 From: Chang She <759245+changhiskhan@users.noreply.github.com> Date: Wed, 22 Mar 2023 19:46:15 -0700 Subject: [PATCH] enable source dist and bdist builds --- .gitignore | 3 +++ python/pyproject.toml | 9 ++++++++- python/setup.py | 17 +++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 python/setup.py diff --git a/.gitignore b/.gitignore index 6f3c4a51..9389ad0f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,6 @@ site .pytest_cache .ruff_cache + +python/build +python/dist diff --git a/python/pyproject.toml b/python/pyproject.toml index b668fd60..6c1804cf 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -47,4 +47,11 @@ docs = [ ] [build-system] -requires = ["setuptools"] \ No newline at end of file +requires = [ + "setuptools", + "wheel", +] +build-backend = "setuptools.build_meta" + +[tool.distutils.bdist_wheel] +universal = true diff --git a/python/setup.py b/python/setup.py new file mode 100644 index 00000000..bcabfa2f --- /dev/null +++ b/python/setup.py @@ -0,0 +1,17 @@ +# Copyright 2023 LanceDB Developers +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import setuptools + +if __name__ == "__main__": + setuptools.setup()