163 dest = join(self.install_dir, base, directory) |
163 dest = join(self.install_dir, base, directory) |
164 export(directory, dest, verbose=False) |
164 export(directory, dest, verbose=False) |
165 |
165 |
166 def install(**kwargs): |
166 def install(**kwargs): |
167 """setup entry point""" |
167 """setup entry point""" |
168 if not USE_SETUPTOOLS and '--install-layout=deb' in sys.argv and \ |
168 if USE_SETUPTOOLS: |
169 sys.versioninfo < (2, 5, 4): |
169 if '--force-manifest' in sys.argv: |
170 sys.argv.remove('--install-layout=deb') |
170 sys.argv.remove('--force-manifest') |
171 print "W: remove '--install-layout=deb' option" |
171 # install-layout option was introduced in 2.5.3-1~exp1 |
|
172 elif sys.version_info < (2, 5, 4) and '--install-layout=deb' in sys.argv: |
|
173 sys.argv.remove('--install-layout=deb') |
172 if subpackage_of: |
174 if subpackage_of: |
173 package = subpackage_of + '.' + modname |
175 package = subpackage_of + '.' + modname |
174 kwargs['package_dir'] = {package : '.'} |
176 kwargs['package_dir'] = {package : '.'} |
175 packages = [package] + get_packages(os.getcwd(), package) |
177 packages = [package] + get_packages(os.getcwd(), package) |
176 if USE_SETUPTOOLS: |
178 if USE_SETUPTOOLS: |