Skip to content

Commit

Permalink
cherry-pick: Add required deps to pyproject.toml (pytorch#3117)
Browse files Browse the repository at this point in the history
Summary:
Cherry-pick 28f1c8c from release/0.2 into main

These pip dependencies need to be present to build the pip wheel.

Also, change the version to a stub that looks less like a real version,
until we can hook up the logic to get the version from the git repo
state.

Pull Request resolved: pytorch#3117

Test Plan: Ran `./install_requirements.sh` in a new conda environment on my mac M1, and it built/installed the pip package successfully.

Reviewed By: tugsbayasgalan

Differential Revision: D56282487

Pulled By: dbort

fbshipit-source-id: 81e575957ca4d1262eecb4dd5b480a88942371f6
  • Loading branch information
dbort authored and facebook-github-bot committed Apr 18, 2024
1 parent 4c552d4 commit f2e660b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions install_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ EXIR_REQUIREMENTS=(
# pip packages needed for development.
DEVEL_REQUIREMENTS=(
cmake # For building binary targets.
pyyaml # Imported by the kernel codegen tools.
setuptools # For building the pip package.
tomli # Imported by extract_sources.py when using python < 3.11.
wheel # For building the pip package archive.
Expand Down
14 changes: 12 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = [
"cmake", # For building binary targets in the wheel.
"pyyaml", # Imported by the kernel codegen tools.
"setuptools", # For building the pip package contents.
"tomli", # Imported by extract_sources.py when using python < 3.11.
"wheel", # For building the pip package archive.
"zstd", # Imported by resolve_buck.py.
]
build-backend = "setuptools.build_meta"

[project]
name = "executorch"
version = "0.1.0"
# TODO(dbort): Use setuptools-git-versioning or setuptools-scm to get the
# version from the git branch state. For now, use a version that doesn't look
# like a real release.
version = "0.2.1.dev0+unknown"
# Python dependencies required for development
dependencies=[
"expecttest",
Expand Down

0 comments on commit f2e660b

Please sign in to comment.