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)
100 cmd = install(dist)
104 cmd.user_options]
108 cmd.user = 1
115 cmd.ensure_finalized()
121 self.assertIn('userbase', cmd.config_vars)
122 self.assertIn('usersite', cmd.config_vars)
126 cmd = install(dist)
129 cmd.handle_extra_path()
130 self.assertEqual(cmd.extra_path, ['path', 'dirs'])
131 self.assertEqual(cmd.extra_dirs, 'dirs')
132 self.assertEqual(cmd.path_file, 'path')
135 cmd.extra_path = ['path']
136 cmd.handle_extra_path()
137 self.assertEqual(cmd.extra_path, ['path'])
138 self.assertEqual(cmd.extra_dirs, 'path')
139 self.assertEqual(cmd.path_file, 'path')
142 dist.extra_path = cmd.extra_path = None
143 cmd.handle_extra_path()
144 self.assertEqual(cmd.extra_path, None)
145 self.assertEqual(cmd.extra_dirs, '')
146 self.assertEqual(cmd.path_file, None)
149 cmd.extra_path = 'path,dirs,again'
150 self.assertRaises(DistutilsOptionError, cmd.handle_extra_path)
154 cmd = install(dist)
158 cmd.prefix = 'prefix'
159 cmd.install_base = 'base'
160 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
163 cmd.install_base = None
164 cmd.home = 'home'
165 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
169 cmd.prefix = None
170 cmd.user = 'user'
171 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
181 cmd = install(dist)
182 dist.command_obj['install'] = cmd
183 cmd.root = install_dir
184 cmd.record = os.path.join(project_dir, 'filelist')
185 cmd.ensure_finalized()
186 cmd.run()
188 f = open(cmd.record)
210 cmd = install(dist)
211 dist.command_obj['install'] = cmd
213 cmd.root = install_dir
214 cmd.record = os.path.join(project_dir, 'filelist')
215 cmd.ensure_finalized()
216 cmd.run()
218 f = open(cmd.record)