forked from astropy/astropy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_package.py
More file actions
38 lines (32 loc) · 1.09 KB
/
setup_package.py
File metadata and controls
38 lines (32 loc) · 1.09 KB
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
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from distutils.core import Extension
from os.path import dirname, join, relpath
ASTROPY_UTILS_ROOT = dirname(__file__)
def get_extensions():
return [
Extension('astropy.utils._compiler',
[relpath(join(ASTROPY_UTILS_ROOT, 'src', 'compiler.c'))])
]
def get_package_data():
# Installs the testing data files
return {
'astropy.utils.tests': [
'data/test_package/*.py',
'data/test_package/data/*.txt',
'data/dataurl/index.html',
'data/dataurl_mirror/index.html',
'data/*.dat',
'data/*.txt',
'data/*.gz',
'data/*.bz2',
'data/*.xz',
'data/.hidden_file.txt',
'data/*.cfg'],
'astropy.utils.iers': [
'data/ReadMe.eopc04_IAU2000',
'data/ReadMe.finals2000A',
'data/eopc04_IAU2000.62-now',
'tests/finals2000A-2016-04-30-test',
'tests/finals2000A-2016-02-30-test',
'tests/iers_a_excerpt']
}