blob: 83c583ed3b1ef81a379a2f6ce7259dd4a3f391ac (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/usr/bin/env python
import os
from distutils.core import setup
from scipy_distutils.misc_util import get_path, default_config_dict
def configuration(parent_package=''):
parent_path = parent_package
if parent_package:
parent_package += '.'
local_path = get_path(__name__)
config = default_config_dict()
#config['packages'].append(parent_package+'scipy_test')
#config['packages'].append(parent_package)
config['package_dir'][''] = local_path
return config
def install_package():
""" Install the scipy_test module. The dance with the current directory
is done to fool distutils into thinking it is run from the
scipy_distutils directory even if it was invoked from another script
located in a different location.
"""
path = get_path(__name__)
old_path = os.getcwd()
os.chdir(path)
try:
setup (name = "scipy_test",
version = "0.1",
description = "Supports testing of SciPy and other heirarchical packages",
author = "Eric Jones",
licence = "BSD Style",
url = 'http://www.scipy.org',
py_modules = ['scipy_test']
)
finally:
os.chdir(old_path)
if __name__ == '__main__':
install_package()
|