13 |
|
from distutils.core import Extension |
14 |
|
from distutils.command.install import INSTALL_SCHEMES |
15 |
|
|
16 |
+ |
sys.path.append(os.path.join(os.getcwd(), 'src/python')) |
17 |
+ |
from DAS import version as das_version |
18 |
+ |
|
19 |
|
requirements = [] |
20 |
|
try: |
21 |
|
import xml.etree.cElementTree |
75 |
|
c_ext = Feature( |
76 |
|
"optional C extension", |
77 |
|
standard=True, |
78 |
< |
ext_modules=[Extension('extensions.das_speed_utils', |
78 |
> |
ext_modules=[Extension('DAS.extensions.das_speed_utils', |
79 |
|
include_dirs=['extensions'], |
80 |
|
sources=['src/python/DAS/extensions/dict_handler.c'])]) |
81 |
|
|
85 |
|
else: |
86 |
|
features = {"c-ext": c_ext} |
87 |
|
|
88 |
< |
|
86 |
< |
version = "1.0.0" # need to define it somehow |
88 |
> |
version = das_version |
89 |
|
name = "DAS" |
90 |
|
description = "CMS Data Aggregation System" |
91 |
|
readme =""" |
97 |
|
scriptfiles = filter(os.path.isfile, ['etc/das.cfg']) |
98 |
|
url = "https://twiki.cern.ch/twiki/bin/viewauth/CMS/DMWMDataAggregationService", |
99 |
|
keywords = ["DAS", "Aggregation", "Meta-data"] |
100 |
< |
package_dir = {'DAS': 'src/python/DAS', |
99 |
< |
'core': 'src/python/DAS/core', |
100 |
< |
'extensions': 'src/python/DAS/extensions', |
101 |
< |
'services': 'src/python/DAS/services', |
102 |
< |
'tools': 'src/python/DAS/tools', |
103 |
< |
'utils': 'src/python/DAS/utils', |
104 |
< |
'web': 'src/python/DAS/web'} |
100 |
> |
package_dir = {'DAS': 'src/python/DAS'} |
101 |
|
package_data = { |
102 |
< |
'src': ['python/DAS/services/maps/*.yml'], |
102 |
> |
'src': ['python/DAS/services/maps/*.yml', 'python/DAS/web/css/*.css'], |
103 |
|
} |
104 |
< |
#data_files = [ |
105 |
< |
# ('src/js', ['src/js/ajax_utils.js', 'src/js/prototype.js', 'src/js/utils.js']), |
110 |
< |
# ('css', ['src/css/*.css']), |
111 |
< |
# ('templates', ['src/templates/*.tmpl']), |
112 |
< |
#] |
113 |
< |
packages = find_packages('src/python/DAS') |
104 |
> |
#packages = find_packages('src/python/DAS') |
105 |
> |
packages = find_packages('src/python/') |
106 |
|
packages += ['src/css', 'src/js', 'src/templates', 'etc', 'bin', 'test', 'doc'] |
107 |
|
license = "CMS experiment software" |
108 |
|
classifiers = [ |