Skip to content

Commit

Permalink
Update documentations and setups to Python 3.9
Browse files Browse the repository at this point in the history
The python minimum support was bumped to 3.9 in iree-org#14810
  • Loading branch information
hanhanW committed Aug 29, 2023
1 parent afa74de commit b7ded8e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate_and_publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
id: set_up_python
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
with:
python-version: "3.8"
python-version: "3.9"
- name: Install python packages
id: install_python_packages
run: |
Expand Down
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -630,15 +630,15 @@ if(IREE_BUILD_PYTHON_BINDINGS)
# "Bootstrapping" by first looking for the optional Development component
# seems to be robust generally.
# See: https://reviews.llvm.org/D118148
# If building Python packages, we have a hard requirement on 3.8+.
find_package(Python3 3.8 COMPONENTS Interpreter Development NumPy)
find_package(Python3 3.8 COMPONENTS Interpreter Development.Module NumPy REQUIRED)
# If building Python packages, we have a hard requirement on 3.9+.
find_package(Python3 3.9 COMPONENTS Interpreter Development NumPy)
find_package(Python3 3.9 COMPONENTS Interpreter Development.Module NumPy REQUIRED)
# Some parts of the build use FindPython instead of FindPython3. Why? No
# one knows, but they are different. So make sure to bootstrap this one too.
# Not doing this here risks them diverging, which on multi-Python systems,
# can be troublesome. Note that nanobind requires FindPython.
set(Python_EXECUTABLE "${Python3_EXECUTABLE}")
find_package(Python 3.8 COMPONENTS Interpreter Development.Module NumPy REQUIRED)
find_package(Python 3.9 COMPONENTS Interpreter Development.Module NumPy REQUIRED)
elseif(IREE_BUILD_COMPILER OR IREE_BUILD_TESTS)
find_package(Python3 COMPONENTS Interpreter REQUIRED)
set(Python_EXECUTABLE "${Python3_EXECUTABLE}")
Expand Down
1 change: 0 additions & 1 deletion compiler/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ def find_git_submodule_revision(submodule_path):
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
2 changes: 1 addition & 1 deletion docs/website/docs/building-from-source/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ about the bindings themselves.

### Dependencies

You will need a recent Python installation >=3.8 (we aim to support
You will need a recent Python installation >=3.9 (we aim to support
[non-eol Python versions](https://endoflife.date/python)).

???+ Tip "Tip - Managing Python versions"
Expand Down
3 changes: 1 addition & 2 deletions integrations/tensorflow/python_projects/iree_tf/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ def load_version_info():
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
python_requires=">=3.8",
python_requires=">=3.9",
packages=find_namespace_packages(
include=[
"iree.tools.tf",
Expand Down
3 changes: 1 addition & 2 deletions integrations/tensorflow/python_projects/iree_tflite/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ def load_version_info():
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
python_requires=">=3.8",
python_requires=">=3.9",
packages=find_namespace_packages(
include=[
"iree.tools.tflite",
Expand Down
2 changes: 0 additions & 2 deletions runtime/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,13 +517,11 @@ def populate_built_package(abs_dir):
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
url="https://github.com/openxla/iree",
python_requires=">=3.8",
ext_modules=(
[
CMakeExtension("iree._runtime_libs._runtime"),
Expand Down

0 comments on commit b7ded8e

Please sign in to comment.