Lines Matching refs:cmd
47 cmd = install(dist)
48 cmd.home = destination
49 cmd.ensure_finalized()
51 self.assertEqual(cmd.install_base, destination)
52 self.assertEqual(cmd.install_platbase, destination)
60 check_path(cmd.install_lib, libdir)
61 check_path(cmd.install_platlib, libdir)
62 check_path(cmd.install_purelib, libdir)
63 check_path(cmd.install_headers,
65 check_path(cmd.install_scripts, os.path.join(destination, "bin"))
66 check_path(cmd.install_data, destination)
99 cmd = install(dist)
103 cmd.user_options]
107 cmd.user = 1
114 cmd.ensure_finalized()
120 self.assertIn('userbase', cmd.config_vars)
121 self.assertIn('usersite', cmd.config_vars)
125 cmd = install(dist)
128 cmd.handle_extra_path()
129 self.assertEqual(cmd.extra_path, ['path', 'dirs'])
130 self.assertEqual(cmd.extra_dirs, 'dirs')
131 self.assertEqual(cmd.path_file, 'path')
134 cmd.extra_path = ['path']
135 cmd.handle_extra_path()
136 self.assertEqual(cmd.extra_path, ['path'])
137 self.assertEqual(cmd.extra_dirs, 'path')
138 self.assertEqual(cmd.path_file, 'path')
141 dist.extra_path = cmd.extra_path = None
142 cmd.handle_extra_path()
143 self.assertEqual(cmd.extra_path, None)
144 self.assertEqual(cmd.extra_dirs, '')
145 self.assertEqual(cmd.path_file, None)
148 cmd.extra_path = 'path,dirs,again'
149 self.assertRaises(DistutilsOptionError, cmd.handle_extra_path)
153 cmd = install(dist)
157 cmd.prefix = 'prefix'
158 cmd.install_base = 'base'
159 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
162 cmd.install_base = None
163 cmd.home = 'home'
164 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
168 cmd.prefix = None
169 cmd.user = 'user'
170 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
180 cmd = install(dist)
181 dist.command_obj['install'] = cmd
182 cmd.root = install_dir
183 cmd.record = os.path.join(project_dir, 'filelist')
184 cmd.ensure_finalized()
185 cmd.run()
187 f = open(cmd.record)
200 cmd = test_support.missing_compiler_executable()
201 if cmd is not None:
202 self.skipTest('The %r command is not found' % cmd)
213 cmd = install(dist)
214 dist.command_obj['install'] = cmd
216 cmd.root = install_dir
217 cmd.record = os.path.join(project_dir, 'filelist')
218 cmd.ensure_finalized()
219 cmd.run()
221 f = open(cmd.record)