forked from nipy/nibabel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpkg_wrapper.py
31 lines (26 loc) · 882 Bytes
/
mpkg_wrapper.py
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 packge.
"""
__docformat__ = 'restructuredtext'
import sys
import setuptools
import bdist_mpkg
def main():
del sys.argv[0]
sys.argv.insert(1, 'bdist_mpkg')
g = dict(globals())
g['__file__'] = sys.argv[0]
g['__name__'] = '__main__'
execfile(sys.argv[0], g, g)
if __name__ == '__main__':
main()