diff --git a/pyproject.toml b/pyproject.toml index f24c46aa881..79b442aa37b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,8 +22,8 @@ readme = "README-wheel.md" authors = [ {name="PyTorch Team", email="packages@pytorch.org"}, ] -license = "BSD-3-Clause" -license-files = ["LICENSE"] +license = {text = "BSD-3-Clause"} + keywords = ["pytorch", "machine learning"] # PyPI package information. classifiers = [ @@ -97,6 +97,9 @@ flatc = "executorch.data.bin:flatc" # TODO(dbort): Could use py_modules to restrict the set of modules we # package, and package_data to restrict the set up non-python files we # include. See also setuptools/discovery.py for custom finders. +[tool.setuptools] +license-files = ["LICENSE"] + [tool.setuptools.package-dir] # Tell setuptools to follow the symlink: src/executorch/* -> * for all first level # modules such as src/executorch/exir -> exir. This helps us to semi-compliant with diff --git a/setup.py b/setup.py index 71aa4c543d4..19f2dd0131e 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,6 @@ import site import subprocess import sys - from distutils import log # type: ignore[import-not-found] from distutils.sysconfig import get_python_lib # type: ignore[import-not-found] from pathlib import Path @@ -552,7 +551,7 @@ def run(self): # package subdirectory. if self.editable_mode: # In editable mode, the package directory is the original source directory - dst_root = self.get_package_dir(".") + dst_root = self.get_package_dir("executorch") else: dst_root = os.path.join(self.build_lib, "executorch") # Create the version file.