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

Method add_scripts

numpy/distutils/misc_util.py:1755–1769  ·  view source on GitHub ↗

Add scripts to configuration. Add the sequence of files to the beginning of the scripts list. Scripts will be installed under the /bin/ directory.

(self,*files)

Source from the content-addressed store, hash-verified

1753
1754
1755 def add_scripts(self,*files):
1756 """Add scripts to configuration.
1757
1758 Add the sequence of files to the beginning of the scripts list.
1759 Scripts will be installed under the <prefix>/bin/ directory.
1760
1761 """
1762 scripts = self.paths(files)
1763 dist = self.get_distribution()
1764 if dist is not None:
1765 if dist.scripts is None:
1766 dist.scripts = []
1767 dist.scripts.extend(scripts)
1768 else:
1769 self.scripts.extend(scripts)
1770
1771 def dict_append(self,**dict):
1772 for key in self.list_keys:

Callers

nothing calls this directly

Calls 2

pathsMethod · 0.95
get_distributionMethod · 0.95

Tested by

no test coverage detected