Home
last modified time | relevance | path

Searched refs:pkg_name (Results 1 – 25 of 79) sorted by relevance

1234

/external/python/cpython3/Lib/
Drunpy.py64 pkg_name=None, script_name=None): argument
76 if pkg_name is None:
77 pkg_name = mod_spec.parent
83 __package__ = pkg_name,
90 pkg_name=None, script_name=None): argument
96 mod_name, mod_spec, pkg_name, script_name)
105 pkg_name, _, _ = mod_name.rpartition(".")
106 if pkg_name:
109 __import__(pkg_name)
114 if e.name is None or (e.name != pkg_name and
[all …]
/external/python/cpython2/Lib/
Drunpy.py64 mod_loader=None, pkg_name=None): argument
71 __package__ = pkg_name)
77 mod_loader=None, pkg_name=None): argument
82 mod_name, mod_fname, mod_loader, pkg_name)
169 pkg_name = mod_name.rpartition('.')[0]
174 "__main__", fname, loader, pkg_name)
185 pkg_name = mod_name.rpartition('.')[0]
188 fname, loader, pkg_name)
192 fname, loader, pkg_name)
271 pkg_name = ""
[all …]
/external/autotest/utils/
Dpackager.py137 pkg_name = pkgmgr.get_tarball_name(name, pkg_type)
141 (pkg_name, pkg_name)) + exclude_string)
152 tarball_path = pkgmgr.tar_package(pkg_name, pkg_dir,
157 md5sum_filepath = os.path.join(build_dir, pkg_name + '.checksum')
174 tarball_path = os.path.join(pkg_dir, pkg_name);
179 tarball_path = pkgmgr.tar_package(pkg_name, pkg_dir,
193 pkgmgr.remove_pkg(pkg_name, remove_checksum=True)
215 pkg_name = pkgmgr.get_tarball_name(name, pkg_type)
221 (pkg_name, pkg_name)) + exclude_string)
224 tarball_path = os.path.join(pkg_dir, pkg_name);
[all …]
/external/python/cpython2/Lib/test/
Dtest_importlib.py130 pkg_name = 'pkg'
131 pkg_long_name = '{0}.__init__'.format(pkg_name)
132 name = '{0}.mod'.format(pkg_name)
156 pkg_name = 'pkg'
157 pkg_long_name = '{0}.__init__'.format(pkg_name)
158 name = '{0}.mod'.format(pkg_name)
161 module = importlib.import_module(name, pkg_name)
Dtest_runpy.py117 pkg_name = "__runpy_pkg__"
124 sub_dir = os.path.join(sub_dir, pkg_name)
133 mod_name = (pkg_name+".")*depth + mod_base
186 pkg_name, _, _ = mod_name.rpartition(".")
189 if verbose: print "Running from source:", pkg_name
190 d1 = run_module(pkg_name) # Read from source
197 if verbose: print "Running from compiled:", pkg_name
198 d2 = run_module(pkg_name) # Read from bytecode
203 self._del_pkg(pkg_dir, depth, pkg_name)
209 pkg_name = "__runpy_pkg__"
[all …]
/external/python/cpython3/Lib/test/
Dtest_runpy.py226 pkg_name = "__runpy_pkg__"
236 sub_dir = os.path.join(sub_dir, pkg_name)
245 mod_name = (pkg_name+".")*depth + mod_base
333 pkg_name = mod_name.rpartition(".")[0]
340 "__package__": pkg_name,
350 return run_module(pkg_name, init_globals, alter_sys=alter_sys)
352 if verbose > 1: print("Running from source:", pkg_name)
360 if verbose > 1: print("Running from compiled:", pkg_name)
371 pkg_name = "__runpy_pkg__"
375 module_dir = os.path.join(module_dir, pkg_name)
[all …]
Dtest_doctest.py690 pkg_name = 'doctest_empty_pkg'
692 pkg_dir = os.path.join(parent_dir, pkg_name)
696 mod = importlib.import_module(pkg_name)
698 support.forget(pkg_name)
/external/python/setuptools/setuptools/command/
Dinstall_lib.py40 def _all_packages(pkg_name): argument
45 while pkg_name:
46 yield pkg_name
47 pkg_name, sep, child = pkg_name.rpartition('.')
/external/autotest/client/common_lib/
Dpackages.py410 pkg_name = self.get_tarball_name(name, pkg_type)
411 fetch_path = os.path.join(fetch_dir, pkg_name)
414 self.fetch_pkg(pkg_name, fetch_path, use_checksum=True)
441 def fetch_pkg(self, pkg_name, dest_path, repo_url=None, use_checksum=False): argument
485 fetcher.fetch_pkg_file(pkg_name, dest_path)
496 (pkg_name, repo_url_list))
628 def remove_pkg(self, pkg_name, remove_path=None, remove_checksum=False): argument
647 self.remove_checksum(pkg_name)
651 self.remove_pkg_file(pkg_name, path)
743 checksum_contents = '\n'.join(checksum + ' ' + pkg_name
[all …]
/external/python/cpython3/Lib/test/test_importlib/
Dtest_api.py28 pkg_name = 'pkg'
29 pkg_long_name = '{0}.__init__'.format(pkg_name)
30 name = '{0}.mod'.format(pkg_name)
38 pkg_name = 'pkg'
39 pkg_long_name = '{0}.__init__'.format(pkg_name)
41 absolute_name = '{0}.{1}'.format(pkg_name, module_name)
45 self.init.import_module(pkg_name)
46 module = self.init.import_module(relative_name, pkg_name)
61 pkg_name = 'pkg'
62 pkg_long_name = '{0}.__init__'.format(pkg_name)
[all …]
/external/skqp/infra/bots/assets/
Dasset_utils.py89 def _search(self, pkg_name): argument
91 res = self._json_output(['search', pkg_name, '--tag', TAG_PROJECT_SKIA])
98 def _describe(self, pkg_name, instance_id): argument
100 return self._json_output(['describe', pkg_name, '--version', instance_id])
104 pkg_name = CIPD_PACKAGE_NAME_TMPL % name
106 for instance_id in self._search(pkg_name):
107 details = self._describe(pkg_name, instance_id)
138 pkg_name = CIPD_PACKAGE_NAME_TMPL % name
144 f.write('%s %s' % (pkg_name, version_tag))
/external/skia/infra/bots/assets/
Dasset_utils.py89 def _search(self, pkg_name): argument
91 res = self._json_output(['search', pkg_name, '--tag', TAG_PROJECT_SKIA])
98 def _describe(self, pkg_name, instance_id): argument
100 return self._json_output(['describe', pkg_name, '--version', instance_id])
104 pkg_name = CIPD_PACKAGE_NAME_TMPL % name
106 for instance_id in self._search(pkg_name):
107 details = self._describe(pkg_name, instance_id)
138 pkg_name = CIPD_PACKAGE_NAME_TMPL % name
144 f.write('%s %s' % (pkg_name, version_tag))
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_meta_path.py85 pkg_name = 'pkg'
86 mod_name = pkg_name + '.module'
89 with self.mock_modules(pkg_name+'.__init__', mod_name) as importer:
90 importer.modules[pkg_name].__path__ = path
/external/python/cpython2/Lib/lib-tk/test/
Druntktests.py38 pkg_name = dirpath[len(basepath) + len(os.sep):].replace('/', '.')
39 if packages and pkg_name not in packages:
49 ".%s" % name[:-len(py_ext)], pkg_name)
/external/python/cpython3/Lib/tkinter/test/
Druntktests.py36 pkg_name = dirpath[len(basepath) + len(os.sep):].replace('/', '.')
37 if packages and pkg_name not in packages:
47 ".%s.%s" % (pkg_name, name[:-len(py_ext)]),
/external/clang/
Dupdate-prebuilts.py110 def download_file(host, build_number, pkg_name, download_dir): argument
118 url = '{}/{}/{}'.format(url_base, path, pkg_name)
121 out_file_path = os.path.join(download_dir, pkg_name)
/external/libaom/libaom/build/cmake/
Dpkg_config.cmake42 string(TOLOWER ${CMAKE_PROJECT_NAME} pkg_name)
48 file(APPEND "${pkgconfig_file}" "Name: ${pkg_name}\n")
56 file(APPEND "${pkgconfig_file}" "Libs: -L\${libdir} -l${pkg_name}\n")
/external/autotest/server/
Dautotest.py1286 pkg_name, dest_path, fifo_path = fetch_package_match.groups()
1289 if serve_packages and pkg_name == 'packages.checksum':
1292 self.job.pkgmgr.pkgmgr_dir, 'packages', pkg_name)
1327 pkg_name, dest_path, fifo_path = fetch_package_match.groups()
1330 if serve_packages and pkg_name.endswith(".tar.bz2"):
1332 self._send_tarball(pkg_name, dest_path)
1345 def _send_tarball(self, pkg_name, remote_dest): argument
1349 'packages', pkg_name)
1356 pkg_name)
1359 name, pkg_type = self.job.pkgmgr.parse_tarball_name(pkg_name)
[all …]
/external/autotest/client/bin/
Dharness_autoserv.py85 def fetch_package(self, pkg_name, dest_path): argument
92 self._send_and_wait('AUTOTEST_FETCH_PACKAGE', pkg_name, dest_path)
/external/python/cpython3/Lib/distutils/tests/
Dsupport.py93 def create_dist(self, pkg_name='foo', **kw): argument
104 pkg_dir = os.path.join(tmp_dir, pkg_name)
/external/python/cpython2/Lib/distutils/tests/
Dsupport.py101 def create_dist(self, pkg_name='foo', **kw): argument
112 pkg_dir = os.path.join(tmp_dir, pkg_name)
/external/python/cpython2/Lib/test/support/
Dscript_helper.py141 def make_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename, argument
153 pkg_names = [os.sep.join([pkg_name]*i) for i in range(1, depth+1)]
/external/virglrenderer/scripts/
Drelease.sh94 Subject: [ANNOUNCE] $pkg_name $pkg_version
308 pkg_name=`$GREP '^PACKAGE = ' Makefile | sed 's|PACKAGE = ||'`
310 tar_name="$pkg_name-$pkg_version"
/external/autotest/client/site_tests/cheets_AppCompatTest/
Dcheets_AppCompatTest.py35 def initialize(self, pkg_name, touch_view_mode): argument
36 self._pkg_name = pkg_name
/external/python/cpython3/Doc/library/
Dmodulefinder.rst19 .. function:: AddPackagePath(pkg_name, path)
21 Record that the package named *pkg_name* can be found in the specified *path*.

1234