Make source distributions. Parameters ---------- options : Set by ``task`` decorator.
(options)
| 83 | |
| 84 | @task |
| 85 | def 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 | #------------- |
nothing calls this directly
no test coverage detected