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

Function sdist

pavement.py:85–114  ·  view source on GitHub ↗

Make source distributions. Parameters ---------- options : Set by ``task`` decorator.

(options)

Source from the content-addressed store, hash-verified

83
84@task
85def sdist(options):
86 """Make source distributions.
87
88 Parameters
89 ----------
90 options :
91 Set by ``task`` decorator.
92
93 """
94 # First clean the repo and update submodules (for up-to-date doc html theme
95 # and Sphinx extensions)
96 sh('git clean -xdf')
97 sh('git submodule init')
98 sh('git submodule update')
99
100 # To be sure to bypass paver when building sdist... paver + numpy.distutils
101 # do not play well together.
102 # Cython is run over all Cython files in setup.py, so generated C files
103 # will be included.
104 sh('python3 setup.py sdist --formats=gztar,zip')
105
106 # Copy the superpack into installers dir
107 idirs = options.installers.installersdir
108 if not os.path.exists(idirs):
109 os.makedirs(idirs)
110
111 for ftype in ['gztar', 'zip']:
112 source = os.path.join('dist', tarball_name(ftype))
113 target = os.path.join(idirs, tarball_name(ftype))
114 shutil.copy(source, target)
115
116
117#-------------

Callers

nothing calls this directly

Calls 4

tarball_nameFunction · 0.85
existsMethod · 0.45
joinMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected