-
Notifications
You must be signed in to change notification settings - Fork 37
/
setup.py
100 lines (89 loc) · 3.53 KB
/
setup.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
from __future__ import print_function
import subprocess
import sys
from setuptools import find_packages, setup
if "--enable-devel" in sys.argv:
install_dev = True
sys.argv.remove("--enable-devel")
else:
install_dev = False
release_version = "3.3.4"
p = subprocess.Popen(
("git", "describe", "--tags"),
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
# Generate and install default arguments
p = subprocess.Popen(["python", "setup_default_args.py"], cwd="share")
p.communicate()
packages = find_packages(exclude=["cmec", "tests"], include=["pcmdi_metrics*"])
scripts = [
"pcmdi_metrics/mean_climate/pcmdi_compute_climatologies.py",
"pcmdi_metrics/mean_climate/mean_climate_driver.py",
"pcmdi_metrics/monsoon_wang/scripts/mpindex_compute.py",
"pcmdi_metrics/monsoon_sperber/driver_monsoon_sperber.py",
"pcmdi_metrics/mjo/mjo_metrics_driver.py",
"pcmdi_metrics/variability_mode/variability_modes_driver.py",
"pcmdi_metrics/enso/enso_driver.py",
"pcmdi_metrics/precip_variability/variability_across_timescales_PS_driver.py",
"pcmdi_metrics/misc/scripts/parallelize_driver.py",
"pcmdi_metrics/misc/scripts/get_pmp_data.py",
"pcmdi_metrics/precip_distribution/precip_distribution_driver.py",
"pcmdi_metrics/cloud_feedback/cloud_feedback_driver.py",
"pcmdi_metrics/extremes/extremes_driver.py",
"pcmdi_metrics/sea_ice/sea_ice_driver.py",
]
entry_points = {
"console_scripts": [
"compositeDiurnalStatistics.py = pcmdi_metrics.diurnal.scripts.compositeDiurnalStatistics:main",
"computeStdOfDailyMeans.py = pcmdi_metrics.diurnal.scripts.computeStdOfDailyMeans:main",
"fourierDiurnalAllGrid.py = pcmdi_metrics.diurnal.scripts.fourierDiurnalAllGrid:main",
"fourierDiurnalGridpoints.py = pcmdi_metrics.diurnal.scripts.fourierDiurnalGridpoints:main",
"savg_fourier.py = pcmdi_metrics.diurnal.scripts.savg_fourier:main",
"std_of_dailymeans.py = pcmdi_metrics.diurnal.scripts.std_of_dailymeans:main",
"std_of_hourlyvalues.py = pcmdi_metrics.diurnal.scripts.std_of_hourlyvalues:main",
"std_of_meandiurnalcycle.py = pcmdi_metrics.diurnal.scripts.std_of_meandiurnalcycle:main",
],
}
data_files = (
(
"share/pmp/graphics/png",
[
"share/pcmdi/PCMDILogo_1588x520px_300dpi.png",
"share/pcmdi/PCMDILogo_200x65px_72dpi.png",
"share/pcmdi/PCMDILogo_300x98px_72dpi.png",
"share/pcmdi/PCMDILogo_400x131px_72dpi.png",
"share/pcmdi/PCMDILogo_500x164px_72dpi.png",
"share/pcmdi/PCMDILogoText_1365x520px_300dpi.png",
"share/pcmdi/PMPLogoText_1359x1146px_300dpi.png",
"share/pcmdi/PMPLogo_1359x1146px_300dpi.png",
"share/pcmdi/PMPLogo_500x421px_72dpi.png",
],
),
(
"share/pmp",
(
"doc/obs_info_dictionary.json",
"share/pcmdi_metrics_table",
"share/disclaimer.txt",
"share/test_data_files.txt",
"share/cmip_model_list.json",
"share/default_regions.py",
"share/DefArgsCIA.json",
"pcmdi_metrics/precip_distribution/lib/cluster3_pdf.amt_regrid.360x180_IMERG_ALL_90S90N.nc",
"share/data/navy_land.nc",
),
),
)
setup(
name="pcmdi_metrics",
version=release_version,
author="PCMDI",
description="model metrics tools",
url="https://github.com/PCMDI/pcmdi_metrics",
packages=packages,
scripts=scripts,
data_files=data_files,
entry_points=entry_points,
)