Return library info for the given package. Parameters ---------- pkgname : str Name of the package (should match the name of the .ini file, without the extension, e.g. foo for the file foo.ini). dirs : sequence, optional If given, should be a sequence of
(pkgname, dirs=None)
| 2170 | return d |
| 2171 | |
| 2172 | def get_pkg_info(pkgname, dirs=None): |
| 2173 | """ |
| 2174 | Return library info for the given package. |
| 2175 | |
| 2176 | Parameters |
| 2177 | ---------- |
| 2178 | pkgname : str |
| 2179 | Name of the package (should match the name of the .ini file, without |
| 2180 | the extension, e.g. foo for the file foo.ini). |
| 2181 | dirs : sequence, optional |
| 2182 | If given, should be a sequence of additional directories where to look |
| 2183 | for npy-pkg-config files. Those directories are searched prior to the |
| 2184 | NumPy directory. |
| 2185 | |
| 2186 | Returns |
| 2187 | ------- |
| 2188 | pkginfo : class instance |
| 2189 | The `LibraryInfo` instance containing the build information. |
| 2190 | |
| 2191 | Raises |
| 2192 | ------ |
| 2193 | PkgNotFound |
| 2194 | If the package is not found. |
| 2195 | |
| 2196 | See Also |
| 2197 | -------- |
| 2198 | Configuration.add_npy_pkg_config, Configuration.add_installed_library, |
| 2199 | get_info |
| 2200 | |
| 2201 | """ |
| 2202 | from numpy.distutils.npy_pkg_config import read_config |
| 2203 | |
| 2204 | if dirs: |
| 2205 | dirs.append(get_npy_pkg_dir()) |
| 2206 | else: |
| 2207 | dirs = [get_npy_pkg_dir()] |
| 2208 | return read_config(pkgname, dirs) |
| 2209 | |
| 2210 | def get_info(pkgname, dirs=None): |
| 2211 | """ |
no test coverage detected