Mercurial > hg > mercurial-crew-with-dirclash
changeset 2402:82cef38fea56
packagescan can't scan nested packages
author | Eung-Ju PARK <eungju@gmail.com> |
---|---|
date | Fri, 02 Jun 2006 16:19:47 +0900 |
parents | dbeaa4369121 |
children | 9b0747207925 |
files | mercurial/packagescan.py setup.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/packagescan.py +++ b/mercurial/packagescan.py @@ -65,7 +65,7 @@ def scan(libpath,packagename): # 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
--- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ try: 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)