[Python-checkins] r52727 - python/branches/release25-maint/Lib/distutils/command/install_egg_info.py
phillip.eby
python-checkins at python.org
Fri Nov 10 18:13:30 CET 2006
Author: phillip.eby
Date: Fri Nov 10 18:13:29 2006
New Revision: 52727
Modified:
python/branches/release25-maint/Lib/distutils/command/install_egg_info.py
Log:
Fix SF#1566719: not creating site-packages (or other target directory) when
installing .egg-info for a project that contains no modules or packages,
while using --root (as in bdist_rpm). (Backport from trunk)
Modified: python/branches/release25-maint/Lib/distutils/command/install_egg_info.py
==============================================================================
--- python/branches/release25-maint/Lib/distutils/command/install_egg_info.py (original)
+++ python/branches/release25-maint/Lib/distutils/command/install_egg_info.py Fri Nov 10 18:13:29 2006
@@ -35,6 +35,9 @@
dir_util.remove_tree(target, dry_run=self.dry_run)
elif os.path.exists(target):
self.execute(os.unlink,(self.target,),"Removing "+target)
+ elif not os.path.isdir(self.install_dir):
+ self.execute(os.makedirs, (self.install_dir,),
+ "Creating "+self.install_dir)
log.info("Writing %s", target)
if not self.dry_run:
f = open(target, 'w')
More information about the Python-checkins
mailing list