[openrtm-commit:01919] r707 - trunk/OpenRTM-aist-Python

openrtm @ openrtm.org openrtm @ openrtm.org
2016年 4月 26日 (火) 16:59:49 JST


Author: miyamoto
Date: 2016-04-26 16:59:49 +0900 (Tue, 26 Apr 2016)
New Revision: 707

Modified:
   trunk/OpenRTM-aist-Python/MANIFEST.in
   trunk/OpenRTM-aist-Python/setup.py
Log:
[compat] add "prune OpenRTM_aist/examples/NXTRTC" to MANIFEST.in

Modified: trunk/OpenRTM-aist-Python/MANIFEST.in
===================================================================
--- trunk/OpenRTM-aist-Python/MANIFEST.in	2016-04-26 00:09:55 UTC (rev 706)
+++ trunk/OpenRTM-aist-Python/MANIFEST.in	2016-04-26 07:59:49 UTC (rev 707)
@@ -10,3 +10,4 @@
 recursive-include OpenRTM_aist *.conf *.exe *.idl *.py *.pth *.sh
 recursive-include OpenRTM_aist *.bat *.exe *.sample README
 recursive-include OpenRTM_aist/docs *.css *.gif *.png *.html *.hhc *.hhk *.hhp
+prune OpenRTM_aist/examples/NXTRTC
\ No newline at end of file

Modified: trunk/OpenRTM-aist-Python/setup.py
===================================================================
--- trunk/OpenRTM-aist-Python/setup.py	2016-04-26 00:09:55 UTC (rev 706)
+++ trunk/OpenRTM-aist-Python/setup.py	2016-04-26 07:59:49 UTC (rev 707)
@@ -280,13 +280,16 @@
 # <prefix>/share/openrtm-1.1/examples/python/SimpleIO/ConsoleIn.py
 #
 #------------------------------------------------------------
-def create_filelist(start_path, subs_path, target_path, regex_match):
+def create_filelist(start_path, subs_path, target_path, regex_match, 
+not_included_modules=[]):
   filelist = []
   temp_hash = {}
   if start_path[-1] != "/": start_path += "/"
   if subs_path[-1] != "/": subs_path += "/"
   import re
   for root, dirs, files in os.walk(start_path):
+    if root.replace("\\","/") in not_included_modules:
+      continue
     for filename in files:
       if re.match(regex_match, filename):
         subdir = re.sub(subs_path, "", root)
@@ -965,7 +968,8 @@
 pkg_example_files   = create_filelist(example_dir,
                                       example_dir,
                                       target_example_dir,
-                                      example_match_regex)
+                                      example_match_regex,
+                                      ["OpenRTM_aist/examples/NXTRTC"])
 
 
 #



More information about the openrtm-commit mailing list