Touch up Python build instructions. (#11424)
* Our `PYTHONPATH` docs had some references to old paths
(`compiler-api\python_package`) still in there. Windows instructions now
use `.env.bat`, matching the `source .env && export PYTHONPATH`
instructions on Linux.
* Added Python 3.10 to the classifiers that will appear on
https://pypi.org/project/iree-compiler/
* The `iree_benchmark_module` script was missing from one build target -
this was working in some configurations but not all
* Removed a duplicate instruction to install from
`build_requirements.txt` (it was a "prerequisite" and an explicit step)
* Added a recommendation to consider using `py` on Windows instead of
`python`
(https://docs.python.org/3/using/windows.html#python-launcher-for-windows)
diff --git a/compiler/setup.py b/compiler/setup.py
index 9866c57..e60b803 100644
--- a/compiler/setup.py
+++ b/compiler/setup.py
@@ -234,6 +234,7 @@
"-DPython3_EXECUTABLE={}".format(sys.executable),
"-DCMAKE_BUILD_TYPE={}".format(cfg),
get_env_cmake_option("IREE_TARGET_BACKEND_CUDA"),
+ # TODO(scotttodd): include IREE_TARGET_BACKEND_WEBGPU here (and in env)
get_env_cmake_option("IREE_ENABLE_CPUINFO", "ON"),
]
@@ -383,9 +384,11 @@
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
+ "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
+ "Programming Language :: Python :: 3.10",
],
ext_modules=[
CMakeExtension("iree.compiler._mlir_libs._mlir"),