Skip to content

Commit f2e660b

Browse files
dbortfacebook-github-bot
authored andcommitted
cherry-pick: Add required deps to pyproject.toml (#3117)
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: #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
1 parent 4c552d4 commit f2e660b

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

install_requirements.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ EXIR_REQUIREMENTS=(
7575
# pip packages needed for development.
7676
DEVEL_REQUIREMENTS=(
7777
cmake # For building binary targets.
78+
pyyaml # Imported by the kernel codegen tools.
7879
setuptools # For building the pip package.
7980
tomli # Imported by extract_sources.py when using python < 3.11.
8081
wheel # For building the pip package archive.

pyproject.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
2+
requires = [
3+
"cmake", # For building binary targets in the wheel.
4+
"pyyaml", # Imported by the kernel codegen tools.
5+
"setuptools", # For building the pip package contents.
6+
"tomli", # Imported by extract_sources.py when using python < 3.11.
7+
"wheel", # For building the pip package archive.
8+
"zstd", # Imported by resolve_buck.py.
9+
]
310
build-backend = "setuptools.build_meta"
411

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

0 commit comments

Comments
 (0)