File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11Python Interface for the Portable Hardware Locality (hwloc) Library
22===================================================================
33
4- - `Official site <https://www.open-mpi.org/projects/hwloc/ >`__ of the hwloc library.
4+ - `Document <https://pyhwloc.readthedocs.io/ >`__.
5+ - `Official site <https://www.open-mpi.org/projects/hwloc/ >`__ of the hwloc library.
Original file line number Diff line number Diff line change @@ -74,14 +74,13 @@ def _chdir(dirname: str) -> Iterator[None]:
7474 os .chdir (pwd )
7575
7676
77- def build_hwloc_xml () -> str :
77+ def build_pyhwloc_xml () -> str :
78+ """Build and install pyhwloc, returns the path to the doxygen xml files."""
7879 if sys .platform == "win32" :
7980 raise NotImplementedError ("Read the docs environment should be Linux." )
8081
8182 hwloc_version_path = os .path .join (
82- normpath (os .path .dirname (__file__ )),
83- os .pardir ,
84- os .pardir ,
83+ PROJECT_ROOT ,
8584 "dev" ,
8685 "hwloc_version" ,
8786 )
@@ -144,7 +143,7 @@ def build_hwloc_xml() -> str:
144143PROJECT_ROOT = os .path .normpath (os .path .join (CURR_PATH , os .path .pardir , os .path .pardir ))
145144
146145if is_readthedocs_build ():
147- hwloc_xml_path : str | None = build_hwloc_xml ()
146+ hwloc_xml_path : str | None = build_pyhwloc_xml ()
148147else :
149148 hwloc_xml_path = os .environ .get ("PYHWLOC_XML_PATH" , None )
150149 if hwloc_xml_path is None :
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ classifiers=[
3232
3333[project .urls ]
3434source = " https://github.com/open-mpi/pyhwloc"
35+ documentation = " https://pyhwloc.readthedocs.io/"
3536
3637[tool .hatch .version ]
3738path = " src/pyhwloc/hwloc/__init__.py"
You can’t perform that action at this time.
0 commit comments