Lines Matching refs:cmd

56         cmd = install(dist)
57 cmd.home = destination
58 cmd.ensure_finalized()
60 self.assertEqual(cmd.install_base, destination)
61 self.assertEqual(cmd.install_platbase, destination)
69 check_path(cmd.install_lib, libdir)
71 check_path(cmd.install_platlib, platlibdir)
72 check_path(cmd.install_purelib, libdir)
73 check_path(cmd.install_headers,
75 check_path(cmd.install_scripts, os.path.join(destination, "bin"))
76 check_path(cmd.install_data, destination)
111 cmd = install(dist)
115 cmd.user_options]
119 cmd.user = 1
126 cmd.ensure_finalized()
132 self.assertIn('userbase', cmd.config_vars)
133 self.assertIn('usersite', cmd.config_vars)
137 cmd = install(dist)
140 cmd.handle_extra_path()
141 self.assertEqual(cmd.extra_path, ['path', 'dirs'])
142 self.assertEqual(cmd.extra_dirs, 'dirs')
143 self.assertEqual(cmd.path_file, 'path')
146 cmd.extra_path = ['path']
147 cmd.handle_extra_path()
148 self.assertEqual(cmd.extra_path, ['path'])
149 self.assertEqual(cmd.extra_dirs, 'path')
150 self.assertEqual(cmd.path_file, 'path')
153 dist.extra_path = cmd.extra_path = None
154 cmd.handle_extra_path()
155 self.assertEqual(cmd.extra_path, None)
156 self.assertEqual(cmd.extra_dirs, '')
157 self.assertEqual(cmd.path_file, None)
160 cmd.extra_path = 'path,dirs,again'
161 self.assertRaises(DistutilsOptionError, cmd.handle_extra_path)
165 cmd = install(dist)
169 cmd.prefix = 'prefix'
170 cmd.install_base = 'base'
171 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
174 cmd.install_base = None
175 cmd.home = 'home'
176 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
180 cmd.prefix = None
181 cmd.user = 'user'
182 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
192 cmd = install(dist)
193 dist.command_obj['install'] = cmd
194 cmd.root = install_dir
195 cmd.record = os.path.join(project_dir, 'filelist')
196 cmd.ensure_finalized()
197 cmd.run()
199 f = open(cmd.record)
213 cmd = test_support.missing_compiler_executable()
214 if cmd is not None:
215 self.skipTest('The %r command is not found' % cmd)
226 cmd = install(dist)
227 dist.command_obj['install'] = cmd
229 cmd.root = install_dir
230 cmd.record = os.path.join(project_dir, 'filelist')
231 cmd.ensure_finalized()
232 cmd.run()
234 f = open(cmd.record)