[openrtm-commit:01069] r570 - trunk/OpenRTM-aist-Python

openrtm @ openrtm.org openrtm @ openrtm.org
2013年 5月 1日 (水) 21:00:17 JST


Author: n-ando
Date: 2013-05-01 21:00:17 +0900 (Wed, 01 May 2013)
New Revision: 570

Removed:
   trunk/OpenRTM-aist-Python/MANIFEST_examples.in
Modified:
   trunk/OpenRTM-aist-Python/setup.py
Log:
[compat] clean_core now delete MANIFEST and dist dir. MANIFEST_example.in has been removed.

Deleted: trunk/OpenRTM-aist-Python/MANIFEST_examples.in
===================================================================
--- trunk/OpenRTM-aist-Python/MANIFEST_examples.in	2013-05-01 01:27:36 UTC (rev 569)
+++ trunk/OpenRTM-aist-Python/MANIFEST_examples.in	2013-05-01 12:00:17 UTC (rev 570)
@@ -1,5 +0,0 @@
-include MANIFEST.in
-include README
-include OpenRTM_aist/__init__.py
-include setup.py
-recursive-include OpenRTM_aist/examples *.py *.pth *.conf README *.idl

Modified: trunk/OpenRTM-aist-Python/setup.py
===================================================================
--- trunk/OpenRTM-aist-Python/setup.py	2013-05-01 01:27:36 UTC (rev 569)
+++ trunk/OpenRTM-aist-Python/setup.py	2013-05-01 12:00:17 UTC (rev 570)
@@ -439,7 +439,9 @@
 # clean
 #   clean_core
 #   clean_example
-#   clean_doc
+# clean_doc (clean_doc is not subcommand of clean, because
+#            documentation files are included sdist pakcage
+#            )
 # sdist
 #   sdist_tgz
 #   sdist_zip
@@ -637,6 +639,12 @@
     if os.path.exists(target_dir):
       shutil.rmtree(target_dir)
 
+def remove_files(base_dir, file_names):
+  for f in file_names:
+    target_file = os.path.normpath(base_dir + "/" + f)
+    if os.path.exists(target_file):
+      os.remove(target_file)
+
 #------------------------------------------------------------
 # "clean" command
 #------------------------------------------------------------
@@ -684,6 +692,8 @@
     return
   def run(self):
     remove_stubs(baseidl_path, baseidl_files, baseidl_mods)
+    remove_dirs('.', ["dist"])
+    remove_files('.', ["MANIFEST"])
 
 #------------------------------------------------------------
 # "clean_example" sub command



More information about the openrtm-commit mailing list