Lines Matching refs:cmd
48 cmd = install(dist)
49 cmd.home = destination
50 cmd.ensure_finalized()
52 self.assertEqual(cmd.install_base, destination)
53 self.assertEqual(cmd.install_platbase, destination)
61 check_path(cmd.install_lib, libdir)
62 check_path(cmd.install_platlib, libdir)
63 check_path(cmd.install_purelib, libdir)
64 check_path(cmd.install_headers,
66 check_path(cmd.install_scripts, os.path.join(destination, "bin"))
67 check_path(cmd.install_data, destination)
101 cmd = install(dist)
105 cmd.user_options]
109 cmd.user = 1
116 cmd.ensure_finalized()
122 self.assertIn('userbase', cmd.config_vars)
123 self.assertIn('usersite', cmd.config_vars)
127 cmd = install(dist)
130 cmd.handle_extra_path()
131 self.assertEqual(cmd.extra_path, ['path', 'dirs'])
132 self.assertEqual(cmd.extra_dirs, 'dirs')
133 self.assertEqual(cmd.path_file, 'path')
136 cmd.extra_path = ['path']
137 cmd.handle_extra_path()
138 self.assertEqual(cmd.extra_path, ['path'])
139 self.assertEqual(cmd.extra_dirs, 'path')
140 self.assertEqual(cmd.path_file, 'path')
143 dist.extra_path = cmd.extra_path = None
144 cmd.handle_extra_path()
145 self.assertEqual(cmd.extra_path, None)
146 self.assertEqual(cmd.extra_dirs, '')
147 self.assertEqual(cmd.path_file, None)
150 cmd.extra_path = 'path,dirs,again'
151 self.assertRaises(DistutilsOptionError, cmd.handle_extra_path)
155 cmd = install(dist)
159 cmd.prefix = 'prefix'
160 cmd.install_base = 'base'
161 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
164 cmd.install_base = None
165 cmd.home = 'home'
166 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
170 cmd.prefix = None
171 cmd.user = 'user'
172 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
182 cmd = install(dist)
183 dist.command_obj['install'] = cmd
184 cmd.root = install_dir
185 cmd.record = os.path.join(project_dir, 'filelist')
186 cmd.ensure_finalized()
187 cmd.run()
189 f = open(cmd.record)
211 cmd = install(dist)
212 dist.command_obj['install'] = cmd
214 cmd.root = install_dir
215 cmd.record = os.path.join(project_dir, 'filelist')
216 cmd.ensure_finalized()
217 cmd.run()
219 f = open(cmd.record)