[Python-checkins] r52023 - sandbox/trunk/setuptools/setuptools/command/bdist_egg.py

phillip.eby python-checkins at python.org
Thu Sep 28 06:47:53 CEST 2006


Author: phillip.eby
Date: Thu Sep 28 06:47:52 2006
New Revision: 52023
Modified:
 sandbox/trunk/setuptools/setuptools/command/bdist_egg.py
Log:
Fix problem generating "eggsecutable" header if dist/ dir doesn't exst yet.
Modified: sandbox/trunk/setuptools/setuptools/command/bdist_egg.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/command/bdist_egg.py	(original)
+++ sandbox/trunk/setuptools/setuptools/command/bdist_egg.py	Thu Sep 28 06:47:52 2006
@@ -319,13 +319,13 @@
 ) % locals()
 
 if not self.dry_run:
+ mkpath(os.path.dirname(self.egg_output), dry_run=self.dry_run)
 f = open(self.egg_output, 'w')
 f.write(header)
 f.close()
 return 'a'
 
 
-
 def copy_metadata_to(self, target_dir):
 prefix = os.path.join(self.egg_info,'')
 for path in self.ei_cmd.filelist.files:


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /