MCPcopy Create free account
hub / github.com/numpy/numpy / _add_library

Method _add_library

numpy/distutils/misc_util.py:1581–1595  ·  view source on GitHub ↗

Common implementation for add_library and add_installed_library. Do not use directly

(self, name, sources, install_dir, build_info)

Source from the content-addressed store, hash-verified

1579 ' it may be too late to add a library '+ name)
1580
1581 def _add_library(self, name, sources, install_dir, build_info):
1582 """Common implementation for add_library and add_installed_library. Do
1583 not use directly"""
1584 build_info = copy.copy(build_info)
1585 build_info['sources'] = sources
1586
1587 # Sometimes, depends is not set up to an empty list by default, and if
1588 # depends is not given to add_library, distutils barfs (#1134)
1589 if not 'depends' in build_info:
1590 build_info['depends'] = []
1591
1592 self._fix_paths_dict(build_info)
1593
1594 # Add to libraries list so that it is build with build_clib
1595 self.libraries.append((name, build_info))
1596
1597 def add_installed_library(self, name, sources, install_dir, build_info=None):
1598 """

Callers 2

add_libraryMethod · 0.95
add_installed_libraryMethod · 0.95

Calls 2

_fix_paths_dictMethod · 0.95
copyMethod · 0.45

Tested by

no test coverage detected