# HG changeset patch # User Eung-Ju PARK # Date 1149232787 -32400 # Node ID 82cef38fea569ced71b9678d25c7025c7f56728c # Parent dbeaa43691214bc0fffad6fbeceaa47b31b5dcc0 packagescan can't scan nested packages diff -r dbeaa4369121 -r 82cef38fea56 mercurial/packagescan.py --- a/mercurial/packagescan.py Sun Jun 04 17:08:02 2006 -0700 +++ b/mercurial/packagescan.py Fri Jun 02 16:19:47 2006 +0900 @@ -65,7 +65,7 @@ # Use the package in the build directory libpath = os.path.abspath(libpath) sys.path.insert(0,libpath) - packdir = os.path.join(libpath,packagename) + packdir = os.path.join(libpath,packagename.replace('.', '/')) # A normal import would not find the package in # the build directory. ihook is used to force the import. # After the package is imported the import scope for diff -r dbeaa4369121 -r 82cef38fea56 setup.py --- a/setup.py Sun Jun 04 17:08:02 2006 -0700 +++ b/setup.py Fri Jun 02 16:19:47 2006 +0900 @@ -56,7 +56,7 @@ else: self.includes = self.includes.split(',') mercurial.packagescan.scan(self.build_lib,'mercurial') - mercurial.packagescan.scan(self.build_lib,'mercurial/hgweb') + mercurial.packagescan.scan(self.build_lib,'mercurial.hgweb') mercurial.packagescan.scan(self.build_lib,'hgext') self.includes += mercurial.packagescan.getmodules() build_exe.finalize_options(self)