dependencies

pyscripts.dependencies(pyfile, pkg_name, abspath=False, pool_size=4)[source]

Return the dependencies on a package for a given python file. Dependencies are acquired on a different process, so it does not interfere with this stack. The package must be importable from the current environment.

Parameters:
  • pyfile (str) – path to the python file to process.
  • pkg_name (str) – name of the package.
  • abspath – whether to return absolute paths.
  • abspath – bool
  • pool_size (int) – parameter to control the amount of processes to create.
Returns:

list with the paths to the files whom the provided file depends on.

Return type:

list(str)