-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
643 lines (530 loc) · 24.2 KB
/
setup.py
File metadata and controls
643 lines (530 loc) · 24.2 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
#!/usr/bin/env python
import os,os.path
import sys
import string
import commands
import glob
from distutils import core
from distutils import cmd
from distutils import log
from distutils import util
from distutils import dir_util
from distutils import errors
from distutils import version
from distutils.command.build import build
from distutils.command.sdist import sdist
from distutils.command.install import install
from distutils.command.install_data import install_data
core.DEBUG = False
g_os = None
g_qkc_option = "-u"
is_examples = False
if os.sep == '/':
g_os = "unix"
if sys.version_info[0:3] >= (2, 6, 0):
example_sitedir = os.path.join("share", "OpenRTM-aist", "examples", "python")
elif sys.version_info[0:3] >= (2, 2, 0):
example_sitedir = os.path.join("share", "OpenRTM-aist", "examples", "python")
elif os.sep == ':':
example_sitedir = os.path.join("lib", "site-packages")
elif os.sep == '\\':
print "os: win32"
g_os = "win32"
example_sitedir = os.path.join("lib", "site-packages")
else:
if sys.version_info[0:3] >= (2, 2, 0):
example_sitedir = os.path.join("lib", "site-packages")
else:
example_sitedir = os.path.join("lib", "site-packages")
def compile_idl(cmd, pars, files):
"""
Put together command line for python stubs generation.
"""
global g_os
cmdline = cmd +' '+ string.join(pars) +' '+string.join(files)
if g_os == "win32":
os.system(cmdline)
return
log.info(cmdline)
status, output = commands.getstatusoutput(cmdline)
log.info(output)
if status != 0:
raise errors.DistutilsExecError("Return status of %s is %d" %
(cmd, status))
def gen_idl_name(dir, name):
"""
Generate name of idl file from directory prefix and IDL module name.
"""
full_name = '"'+os.path.join(dir, name + ".idl")+'"'
return full_name
class Build_idl (cmd.Command):
"""
This class realizes a subcommand of build command and is used for building
IDL stubs.
"""
description = "Generate python stubs from IDL files"
user_options = [("omniidl=", "i", "omniidl program used to build stubs"),
("idldir=", "d", "directory where IDL files reside")]
def initialize_options(self):
self.idldir = None
self.omniidl = None
self.omniidl_params = ["-bpython"]
def finalize_options(self):
if not self.omniidl:
self.omniidl = "omniidl"
if not self.idldir:
self.idldir = os.path.join(os.getcwd(),"OpenRTM_aist","RTM_IDL")
def run(self):
#self.omniidl_params.append("-Wbpackage=OpenRTM_aist.RTM_IDL")
self.omniidl_params.append("-COpenRTM_aist/RTM_IDL")
self.omniidl_params.append("-IOpenRTM_aist/RTM_IDL")
modules = ["BasicDataType", "DataPort", "ExtendedDataTypes",
"InterfaceDataTypes", "Manager", "OpenRTM", "RTC",
"SDOPackage"]
util.execute(compile_idl,
(self.omniidl, self.omniidl_params,
[ gen_idl_name(self.idldir, module) for module in modules ]),
"Generating python stubs from IDL files")
# for SimpleService
self.idldir = os.path.join(os.getcwd(),"OpenRTM_aist","examples","SimpleService")
self.omniidl_params[-2]=("-COpenRTM_aist/examples/SimpleService")
self.omniidl_params[-1]=("-IOpenRTM_aist/examples/SimpleService")
modules = ["MyService"]
util.execute(compile_idl,
(self.omniidl, self.omniidl_params,
[ gen_idl_name(self.idldir, module) for module in modules ]),
"Generating python sample stubs from IDL files")
# for AutoTest
self.idldir = os.path.join(os.getcwd(),"OpenRTM_aist","examples","AutoTest")
self.omniidl_params[-2]=("-COpenRTM_aist/examples/AutoTest")
self.omniidl_params[-1]=("-IOpenRTM_aist/examples/AutoTest")
modules = ["AutoTestService"]
util.execute(compile_idl,
(self.omniidl, self.omniidl_params,
[ gen_idl_name(self.idldir, module) for module in modules ]),
"Generating python sample stubs from IDL files")
class Build_examples_idl (cmd.Command):
"""
This class realizes a subcommand of build command and is used for building
IDL stubs.
"""
description = "Generate python stubs from IDL files in examples"
user_options = [("omniidl=", "i", "omniidl program used to build stubs"),
("idldir=", "d", "directory where IDL files reside")]
def initialize_options(self):
self.idldir = None
self.omniidl = None
self.omniidl_params = ["-bpython"]
def finalize_options(self):
if not self.omniidl:
self.omniidl = "omniidl"
if not self.idldir:
self.idldir = os.path.join(os.getcwd(),"OpenRTM_aist","examples","SimpleService")
def run(self):
#self.omniidl_params.append("-Wbpackage=OpenRTM_aist.RTM_IDL")
self.omniidl_params.append("-COpenRTM_aist/examples/SimpleService")
self.omniidl_params.append("-IOpenRTM_aist/examples/SimpleService")
modules = ["MyService"]
util.execute(compile_idl,
(self.omniidl, self.omniidl_params,
[ gen_idl_name(self.idldir, module) for module in modules ]),
"Generating python sample stubs from IDL files")
class Build_doc(cmd.Command):
"""
This class realizes a subcommand of build command and is used for building
document by doxygen.
"""
description = "Generate document by doxygen"
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
global g_os
global is_examples
if g_os == "unix" and not is_examples:
curr_dir = os.getcwd()
docs_dir = os.path.join(os.getcwd(), 'OpenRTM_aist', 'docs')
os.chdir(docs_dir)
os.system("make")
os.chdir(curr_dir)
class Build_examples (build):
"""
This is here just to override default sub_commands list of build class.
We added 'build_examples_idl' item.
"""
def has_pure_modules (self):
return self.distribution.has_pure_modules()
def has_c_libraries (self):
return self.distribution.has_c_libraries()
def has_ext_modules (self):
return self.distribution.has_ext_modules()
def has_scripts (self):
return self.distribution.has_scripts()
def has_idl_files (self):
return True
sub_commands = [('build_examples_idl', has_idl_files),
('build_py', has_pure_modules),
('build_clib', has_c_libraries),
('build_ext', has_ext_modules),
('build_scripts', has_scripts)]
class Build (build):
"""
This is here just to override default sub_commands list of build class.
We added 'build_idl' item.
"""
def has_pure_modules (self):
return self.distribution.has_pure_modules()
def has_c_libraries (self):
return self.distribution.has_c_libraries()
def has_ext_modules (self):
return self.distribution.has_ext_modules()
def has_scripts (self):
return self.distribution.has_scripts()
def has_idl_files (self):
return True
def has_doc_files (self):
return True
sub_commands = [('build_doc', has_doc_files),
('build_idl', has_idl_files),
('build_py', has_pure_modules),
('build_clib', has_c_libraries),
('build_ext', has_ext_modules),
('build_scripts', has_scripts)]
class OtherSetupForSdist(sdist):
def initialize_options(self):
global is_examples
sdist.initialize_options(self)
if is_examples:
self.template = "MANIFEST_examples.in"
self.use_defaults = 0
self.force_manifest = 1
stub_dirs = ["SimpleService","SimpleService__POA"]
for dir_ in stub_dirs:
if not os.path.isdir(os.path.join(os.getcwd(),"OpenRTM_aist","examples","SimpleService",dir_)):
os.mkdir(os.path.join(os.getcwd(),"OpenRTM_aist","examples","SimpleService",dir_))
else:
self.use_defaults = 0
self.force_manifest = 1
stub_dirs = ["OpenRTM","OpenRTM__POA",
"RTC","RTC__POA",
"RTM","RTM__POA",
"SDOPackage","SDOPackage__POA"]
for dir_ in stub_dirs:
if not os.path.isdir(os.path.join(os.getcwd(),"OpenRTM_aist","RTM_IDL",dir_)):
os.mkdir(os.path.join(os.getcwd(),"OpenRTM_aist","RTM_IDL",dir_))
def make_distribution (self):
"""Create the source distribution(s). First, we create the release
tree with 'make_release_tree()'; then, we create all required
archive files (according to 'self.formats') from the release tree.
Finally, we clean up by blowing away the release tree (unless
'self.keep_temp' is true). The list of archive files created is
stored so it can be retrieved later by 'get_archive_files()'.
"""
global g_os
global g_qkc_option
# Don't warn about missing meta-data here -- should be (and is!)
# done elsewhere.
base_dir = self.distribution.get_fullname()
base_name = os.path.join(self.dist_dir, base_dir)
self.make_release_tree(base_dir, self.filelist.files)
archive_files = [] # remember names of files we create
if g_os == "unix":
curr_dir = os.getcwd()
cmd_dir = os.path.join(os.getcwd(), pkg_name+'-'+pkg_version)
os.chdir(cmd_dir)
cmd_ = "find . -name \"*\" | xargs qkc %s" % g_qkc_option
os.system(cmd_)
os.chdir(curr_dir)
for fmt in self.formats:
file = self.make_archive(base_name, fmt, base_dir=base_dir)
archive_files.append(file)
self.distribution.dist_files.append(('sdist', '', file))
self.archive_files = archive_files
if not self.keep_temp:
dir_util.remove_tree(base_dir, dry_run=self.dry_run)
install_data_dir = None
class Install(install):
def run(self):
global install_data_dir
install_data_dir = self.install_purelib
install.run(self)
class InstallData(install_data):
def run(self):
global install_data_dir
for i in range(len(self.data_files)):
dir = os.path.join(install_data_dir,self.data_files[i][0])
self.data_files[i] = (dir,self.data_files[i][1])
install_data.run(self)
############################### data for setup() ###########################################
unix_packages = ["OpenRTM_aist",
"OpenRTM_aist.RTM_IDL",
"OpenRTM_aist.RTM_IDL.OpenRTM",
"OpenRTM_aist.RTM_IDL.OpenRTM__POA",
"OpenRTM_aist.RTM_IDL.RTC",
"OpenRTM_aist.RTM_IDL.RTC__POA",
"OpenRTM_aist.RTM_IDL.RTM",
"OpenRTM_aist.RTM_IDL.RTM__POA",
"OpenRTM_aist.RTM_IDL.SDOPackage",
"OpenRTM_aist.RTM_IDL.SDOPackage__POA",
"OpenRTM_aist.RTM_IDL.device_interfaces",
"OpenRTM_aist.ext",
"OpenRTM_aist.ext.sdo",
"OpenRTM_aist.ext.sdo.observer",
"OpenRTM_aist.utils",
"OpenRTM_aist.utils.rtcd",
"OpenRTM_aist.utils.rtcprof",
"OpenRTM_aist.utils.rtc-template",
"OpenRTM_aist.utils.rtm-naming"]
example_dir = ["AutoControl",
"Composite",
"ConfigSample",
"ExtTrigger",
"MobileRobotCanvas",
"NXTRTC",
"SeqIO",
"SimpleIO",
{"SimpleService":["SimpleService","SimpleService__POA"]},
"Slider_and_Motor",
"TkLRFViewer",
"TkJoyStick"]
example_data_files = []
simpleservice_path = glob.glob(os.path.join("OpenRTM_aist", "examples", "SimpleService"))[0]
simpleservice_path += "/SimpleService/__init__.py"
example_data_files.append((os.path.join(example_sitedir, "SimpleService", "SimpleService"),
[simpleservice_path]))
simpleservice__poa_path = glob.glob(os.path.join("OpenRTM_aist", "examples", "SimpleService"))[0]
simpleservice__poa_path += "/SimpleService__POA/__init__.py"
example_data_files.append((os.path.join(example_sitedir, "SimpleService", "SimpleService__POA"),
[simpleservice__poa_path]))
simpleservice_idl_path = glob.glob(os.path.join("OpenRTM_aist", "examples", "SimpleService"))[0]
simpleservice_idl_path += "/MyService_idl.py"
example_data_files.append((os.path.join(example_sitedir, "SimpleService"),
[simpleservice_idl_path]))
for ex in example_dir:
if isinstance(ex, str):
py_path_ = glob.glob(os.path.join("OpenRTM_aist", "examples", ex, "*.py"))
conf_path_ = glob.glob(os.path.join("OpenRTM_aist", "examples", ex, "*.conf"))
idl_path_ = glob.glob(os.path.join("OpenRTM_aist", "examples", ex, "*.idl"))
if py_path_:
for pp_ in py_path_:
example_data_files.append((os.path.join(example_sitedir, ex), [pp_]))
if conf_path_:
for cp_ in conf_path_:
example_data_files.append((os.path.join(example_sitedir, ex), [cp_]))
if idl_path_:
for ip_ in idl_path_:
example_data_files.append((os.path.join(example_sitedir, ex), [ip_]))
elif isinstance(ex, dict):
vals_ = ex.values()
key_ = ex.keys()[0]
if isinstance(vals_, list):
if isinstance(vals_[0], list):
for val_ in vals_[0]:
stub_path_ = glob.glob(os.path.join("OpenRTM_aist", "examples",
key_, val_, "*.py"))
if stub_path_:
for sp_ in stub_path_:
example_data_files.append((os.path.join(example_sitedir, key_, val_), [sp_]))
elif isinstance(vals_[0], str):
stub_path_ = glob.glob(os.path.join("OpenRTM_aist", "examples",
key_, vals_[0], "*.py"))
if stub_path_:
for sp_ in stub_path_:
example_data_files.append((os.path.join(example_sitedir, key_, vals_[0]), [sp_]))
py_path_ = glob.glob(os.path.join("OpenRTM_aist", "examples", key_, "*.py"))
conf_path_ = glob.glob(os.path.join("OpenRTM_aist", "examples", key_, "*.conf"))
idl_path_ = glob.glob(os.path.join("OpenRTM_aist", "examples", key_, "*.idl"))
if py_path_:
for pp_ in py_path_:
example_data_files.append((os.path.join(example_sitedir, key_), [pp_]))
if conf_path_:
for cp_ in conf_path_:
example_data_files.append((os.path.join(example_sitedir, key_), [cp_]))
if idl_path_:
for ip_ in idl_path_:
example_data_files.append((os.path.join(example_sitedir, key_), [ip_]))
win32_packages = ["OpenRTM_aist",
"OpenRTM_aist.RTM_IDL",
"OpenRTM_aist.RTM_IDL.OpenRTM",
"OpenRTM_aist.RTM_IDL.OpenRTM__POA",
"OpenRTM_aist.RTM_IDL.RTC",
"OpenRTM_aist.RTM_IDL.RTC__POA",
"OpenRTM_aist.RTM_IDL.RTM",
"OpenRTM_aist.RTM_IDL.RTM__POA",
"OpenRTM_aist.RTM_IDL.SDOPackage",
"OpenRTM_aist.RTM_IDL.SDOPackage__POA",
"OpenRTM_aist.RTM_IDL.device_interfaces",
"OpenRTM_aist.examples.AutoControl",
"OpenRTM_aist.examples.Composite",
"OpenRTM_aist.examples.ConfigSample",
"OpenRTM_aist.examples.ExtTrigger",
"OpenRTM_aist.examples.MobileRobotCanvas",
"OpenRTM_aist.examples.NXTRTC",
"OpenRTM_aist.examples.SeqIO",
"OpenRTM_aist.examples.SimpleIO",
"OpenRTM_aist.examples.SimpleService",
"OpenRTM_aist.examples.Slider_and_Motor",
"OpenRTM_aist.examples.Templates",
"OpenRTM_aist.examples.TkJoyStick",
"OpenRTM_aist.examples.TkLRFViewer",
"OpenRTM_aist.ext",
"OpenRTM_aist.ext.sdo",
"OpenRTM_aist.ext.sdo.observer",
"OpenRTM_aist.utils",
"OpenRTM_aist.utils.rtcd",
"OpenRTM_aist.utils.rtcprof",
"OpenRTM_aist.utils.rtc-template",
"OpenRTM_aist.utils.rtm-naming"]
unix_data_files = [("",['OpenRTM-aist.pth'])]
idl_files= glob.glob(os.path.join('OpenRTM_aist',
'RTM_IDL',
'*.idl'))
device_if_idl_files= glob.glob(os.path.join('OpenRTM_aist',
'RTM_IDL',
'device_interfaces',
'*.idl'))
unix_data_files.append((os.path.join('OpenRTM_aist', 'utils', 'rtcd'),
['OpenRTM_aist/utils/rtcd/rtcd.conf']))
unix_data_files.append((os.path.join('OpenRTM_aist', 'utils', 'rtcd'),
['OpenRTM_aist/utils/rtcd/rtc.conf']))
unix_data_files.append((os.path.join('OpenRTM_aist', 'ext', 'sdo', 'observer'),
['OpenRTM_aist/ext/sdo/observer/rtc.conf']))
for idl in idl_files:
unix_data_files.append((os.path.join('OpenRTM_aist', 'RTM_IDL'),
[idl]))
for device_idl in device_if_idl_files:
unix_data_files.append((os.path.join('OpenRTM_aist', 'RTM_IDL',
'device_interfaces'), [device_idl]))
import copy
win32_data_files = copy.deepcopy(unix_data_files)
win32_data_files.append((os.path.join('OpenRTM_aist', 'examples'),
['OpenRTM_aist/examples/rtc.conf.sample']))
win32_data_files.append((os.path.join('OpenRTM_aist', 'examples'),
['OpenRTM_aist/examples/component.conf']))
win32_data_files.append((os.path.join('OpenRTM_aist', 'ext', 'sdo', 'observer'),
['OpenRTM_aist/ext/sdo/observer/setup.bat']))
unix_data_files.append((os.path.join('OpenRTM_aist', 'ext', 'sdo', 'observer'),
['OpenRTM_aist/ext/sdo/observer/setup.sh']))
templates_xml = glob.glob(os.path.join('OpenRTM_aist',
'examples',
'Templates',
'*.xml'))
for tmp_xml in templates_xml:
win32_data_files.append((os.path.join('OpenRTM_aist', 'examples', 'Templates'),
[tmp_xml]))
##############################################################################################
pkg_name = "OpenRTM-aist-Python"
pkg_version = "1.1.0"
pkg_desc = "Python modules for OpenRTM-aist-1.1"
pkg_author = "Shinji Kurihara and Noriaki Ando"
pkg_email = "n-ando@aist.go.jp"
pkg_url = "http://www.openrtm.org/"
pkg_long_desc = """\
OpenRTM-aist is a reference implementation of RT-Middleware,
which is now under standardization process in OMG (Object Management Group).
OpenRTM-aist is being developed and distributed by
Intelligent Systems Research Institute,
National Institute of Advanced Industrial Science and Technology (AIST), Japan.
Please see http://www.openrtm.org/ for more detail.
"""
pkg_license = "LGPL"
examples_install = False
cwd_ = os.getcwd()
if cwd_.find("OpenRTM-aist-Python-example-1.1.0") != -1 or \
cwd_.find("openrtm-aist-python-example-1.1.0") != -1:
examples_install = True
try:
if g_os == "unix":
g_qkc_option = "-u"
# for RTM (sdist, build, install)
if not examples_install:
core.setup(name = pkg_name,
version = pkg_version,
description = pkg_desc,
author = pkg_author,
author_email = pkg_email,
url = pkg_url,
long_description = pkg_long_desc,
license = pkg_license,
cmdclass = { "build":Build, "build_idl":Build_idl, "build_doc":Build_doc,
"sdist":OtherSetupForSdist, "install":Install, "install_data":InstallData },
packages = unix_packages,
scripts= ['OpenRTM_aist/utils/rtcprof/rtcprof_python',
'OpenRTM_aist/utils/rtcd/rtcd_python'],
data_files = unix_data_files)
# for RTM zip (sdist)
if sys.argv[1] == "sdist":
g_qkc_option = "-m"
is_examples = False
core.setup(name = pkg_name,
version = pkg_version,
description = pkg_desc,
author = pkg_author,
author_email = pkg_email,
url = pkg_url,
long_description = pkg_long_desc,
license = pkg_license,
cmdclass = { "build":Build, "build_idl":Build_idl, "build_doc":Build_doc, "sdist":OtherSetupForSdist},
packages = win32_packages,
scripts= ['OpenRTM_aist/utils/rtcprof/rtcprof_python.bat',
'OpenRTM_aist/utils/rtcd/rtcd_python.bat',
'OpenRTM_aist/utils/rtcd/rtcd_python.exe',
'OpenRTM_aist/ext/sdo/observer/setup.bat'],
data_files = win32_data_files,
script_args = ["sdist", "--format=zip"])
# for examples (sdist)
g_qkc_option = "-u"
pkg_name = "OpenRTM-aist-Python-example"
pkg_desc = "Python example components for OpenRTM-aist-1.1"
is_examples = True
core.setup(name = pkg_name,
version = pkg_version,
description = pkg_desc,
author = pkg_author,
author_email = pkg_email,
url = pkg_url,
long_description = pkg_long_desc,
license = pkg_license,
cmdclass = { "build":Build_examples, "build_examples_idl":Build_examples_idl, "sdist":OtherSetupForSdist },
data_files = example_data_files,
script_args = ["sdist", "--no-defaults"])
is_examples = False
else:
if examples_install:
# for examples (build, install)
g_qkc_option = "-u"
pkg_name = "OpenRTM-aist-Python-example"
pkg_desc = "Python example components for OpenRTM-aist-1.1"
core.setup(name = pkg_name,
version = pkg_version,
description = pkg_desc,
author = pkg_author,
author_email = pkg_email,
url = pkg_url,
long_description = pkg_long_desc,
license = pkg_license,
cmdclass = { "build":Build_examples, "build_examples_idl":Build_examples_idl, "sdist":OtherSetupForSdist },
data_files = example_data_files)
elif g_os == "win32":
g_qkc_option = "-m"
# for RTM
core.setup(name = pkg_name,
version = pkg_version,
description = pkg_desc,
author = pkg_author,
author_email = pkg_email,
url = pkg_url,
long_description = pkg_long_desc,
license = pkg_license,
cmdclass = { "build":Build, "build_idl":Build_idl, "build_doc":Build_doc,
"install":Install, "install_data":InstallData },
packages = win32_packages,
scripts= ['OpenRTM_aist/utils/rtcprof/rtcprof_python.bat',
'OpenRTM_aist/utils/rtcd/rtcd_python.bat',
'OpenRTM_aist/utils/rtcd/rtcd_python.exe',
'OpenRTM_aist/ext/sdo/observer/setup.bat'],
data_files = win32_data_files)
# script_args = ["sdist", "--format=zip"])
except Exception, e:
log.error("Error: %s", e)