File: mpkg_wrapper.py

package info (click to toggle)
nibabel 5.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 69,232 kB
  • sloc: python: 39,851; makefile: 276; ansic: 202; sh: 99
file content (31 lines) | stat: -rw-r--r-- 858 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
#   See COPYING file distributed along with the NiBabel package for the
#   copyright and license terms.
#
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
"""Simple wrapper to use setuptools extension bdist_mpkg with NiBabel
distutils setup.py.

This script is a minimal version of a wrapper script shipped with the
bdist_mpkg package.
"""

__docformat__ = 'restructuredtext'

import sys


def main():
    del sys.argv[0]
    sys.argv.insert(1, 'bdist_mpkg')
    g = dict(globals())
    g['__file__'] = sys.argv[0]
    g['__name__'] = '__main__'
    exec(open(sys.argv[0]).read(), g, g)


if __name__ == '__main__':
    main()