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


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Jun 6 2019 19:11:34