Home | History | Annotate | Download | only in tests

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)
102 cmd = install(dist)
106 cmd.user_options]
110 cmd.user = 1
117 cmd.ensure_finalized()
123 self.assertIn('userbase', cmd.config_vars)
124 self.assertIn('usersite', cmd.config_vars)
128 cmd = install(dist)
131 cmd.handle_extra_path()
132 self.assertEqual(cmd.extra_path, ['path', 'dirs'])
133 self.assertEqual(cmd.extra_dirs, 'dirs')
134 self.assertEqual(cmd.path_file, 'path')
137 cmd.extra_path = ['path']
138 cmd.handle_extra_path()
139 self.assertEqual(cmd.extra_path, ['path'])
140 self.assertEqual(cmd.extra_dirs, 'path')
141 self.assertEqual(cmd.path_file, 'path')
144 dist.extra_path = cmd.extra_path = None
145 cmd.handle_extra_path()
146 self.assertEqual(cmd.extra_path, None)
147 self.assertEqual(cmd.extra_dirs, '')
148 self.assertEqual(cmd.path_file, None)
151 cmd.extra_path = 'path,dirs,again'
152 self.assertRaises(DistutilsOptionError, cmd.handle_extra_path)
156 cmd = install(dist)
160 cmd.prefix = 'prefix'
161 cmd.install_base = 'base'
162 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
165 cmd.install_base = None
166 cmd.home = 'home'
167 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
171 cmd.prefix = None
172 cmd.user = 'user'
173 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
183 cmd = install(dist)
184 dist.command_obj['install'] = cmd
185 cmd.root = install_dir
186 cmd.record = os.path.join(project_dir, 'filelist')
187 cmd.ensure_finalized()
188 cmd.run()
190 f = open(cmd.record)
212 cmd = install(dist)
213 dist.command_obj['install'] = cmd
215 cmd.root = install_dir
216 cmd.record = os.path.join(project_dir, 'filelist')
217 cmd.ensure_finalized()
218 cmd.run()
220 f = open(cmd.record)