Author: dmeyer
Date: Sun Feb 5 21:18:14 2006
New Revision: 7912
Modified:
trunk/setup.py
Log:
bugfix for calling without arg and support removing MANIFEST files
Modified: trunk/setup.py
==============================================================================
--- trunk/setup.py (original)
+++ trunk/setup.py Sun Feb 5 21:18:14 2006
@@ -46,12 +46,16 @@
# can find the distribution file of freevo.core
# sys.path.insert(0, '../base/build/lib')
-if sys.argv[1] == 'clean' and len(sys.argv) == 2:
+if len(sys.argv) == 2 and sys.argv[1] == 'clean':
for m in submodules:
- build = os.path.join(m, 'build')
- if os.path.isdir(build):
- print 'removing %s' % build
- os.system('rm -rf %s' % build)
+ for file in ('build', 'dist', 'src/version.py', 'MANIFEST'):
+ file = os.path.join(m, file)
+ if os.path.isdir(file):
+ print 'removing %s' % file
+ os.system('rm -rf %s' % file)
+ if os.path.isfile(file):
+ print 'removing %s' % file
+ os.unlink(file)
else:
if not os.path.isdir('lib'):
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog