blob: 3ed1e0b0bc700d7b6bf526c533ca8ace4aae97b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/usr/bin/env python
"""
A setup.py script to use setuptools, which gives egg goodness, etc.
This is used to build installers for OS X through bdist_mpkg.
Notes
-----
Using ``python setupegg.py install`` directly results in file permissions being
set wrong, with nose refusing to run any tests. To run the tests anyway, use::
>>> np.test(extra_argv=['--exe'])
"""
import sys
from setuptools import setup
if sys.version_info[0] >= 3:
import imp
setupfile = imp.load_source('setupfile', 'setup.py')
setupfile.setup_package()
else:
execfile('setup.py')
|