Home
last modified time | relevance | path

Searched refs:package_dir (Results 1 – 25 of 69) sorted by relevance

123

/external/python/cpython2/Lib/distutils/command/
Dbuild_py.py38 self.package_dir = None
53 self.package_dir = {}
54 if self.distribution.package_dir:
55 for name, path in self.distribution.package_dir.items():
56 self.package_dir[name] = convert_path(path)
151 if not self.package_dir:
160 pdir = self.package_dir['.'.join(path)]
175 pdir = self.package_dir.get('')
184 def check_package(self, package, package_dir): argument
189 if package_dir != "":
[all …]
/external/python/cpython3/Lib/distutils/command/
Dbuild_py.py37 self.package_dir = None
52 self.package_dir = {}
53 if self.distribution.package_dir:
54 for name, path in self.distribution.package_dir.items():
55 self.package_dir[name] = convert_path(path)
150 if not self.package_dir:
159 pdir = self.package_dir['.'.join(path)]
174 pdir = self.package_dir.get('')
183 def check_package(self, package, package_dir): argument
188 if package_dir != "":
[all …]
/external/grpc-grpc-java/compiler/src/java_plugin/cpp/
Djava_plugin.cpp15 string package_dir = package_name; in JavaPackageToDir() local
16 for (size_t i = 0; i < package_dir.size(); ++i) { in JavaPackageToDir()
17 if (package_dir[i] == '.') { in JavaPackageToDir()
18 package_dir[i] = '/'; in JavaPackageToDir()
21 if (!package_dir.empty()) package_dir += "/"; in JavaPackageToDir()
22 return package_dir; in JavaPackageToDir()
/external/python/cpython2/Lib/test/
Dtest_pkgimport.py22 self.package_dir = os.path.join(self.test_dir,
24 os.mkdir(self.package_dir)
26 self.package_dir, '__init__'+os.extsep+'py'), 'w').close()
27 self.module_path = os.path.join(self.package_dir, 'foo'+os.extsep+'py')
30 for file in os.listdir(self.package_dir):
31 os.remove(os.path.join(self.package_dir, file))
32 os.rmdir(self.package_dir)
Dtest_pkgutil.py31 package_dir = os.path.join(self.dirname, pkg)
32 os.mkdir(package_dir)
34 f = open(os.path.join(package_dir, '__init__.py'), "wb")
37 f = open(os.path.join(package_dir, 'res.txt'), "wb")
40 os.mkdir(os.path.join(package_dir, 'sub'))
41 f = open(os.path.join(package_dir, 'sub', 'res.txt'), "wb")
/external/python/setuptools/tests/
Dtest_pypi.py41 package_dir = os.path.join(tmp_dir, "test_%s" % package_name)
43 package_dir = package_dir + "_baseline"
45 virtualenv.create_environment(package_dir)
47 pip_path = os.path.join(package_dir, "bin", "pip")
/external/gflags/src/
Dgflags_completions.cc118 const string &package_dir,
124 string *package_dir);
248 string package_dir; in PrintFlagCompletionInfo() local
249 TryFindModuleAndPackageDir(all_flags, &module, &package_dir); in PrintFlagCompletionInfo()
251 DVLOG(1) << "Identified package_dir: '" << package_dir << "'"; in PrintFlagCompletionInfo()
258 package_dir, in PrintFlagCompletionInfo()
420 const string &package_dir, // empty if we couldn't find any in CategorizeAllMatchingFlags() argument
435 if (!package_dir.empty()) in CategorizeAllMatchingFlags()
436 pos = (*it)->filename.find(package_dir); in CategorizeAllMatchingFlags()
441 pos + package_dir.size() + 1); in CategorizeAllMatchingFlags()
[all …]
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_generator.cc200 string package_dir = in Generate() local
202 if (!package_dir.empty()) package_dir += "/"; in Generate()
207 string java_filename = package_dir; in Generate()
220 file_generator.GenerateSiblings(package_dir, output_directory, &all_files); in Generate()
Djavanano_file.cc215 static void GenerateSibling(const string& package_dir, in GenerateSibling() argument
221 string filename = package_dir + descriptor->name() + ".java"; in GenerateSibling()
240 void FileGenerator::GenerateSiblings(const string& package_dir, in GenerateSiblings() argument
245 GenerateSibling<MessageGenerator>(package_dir, java_package_, in GenerateSiblings()
252 GenerateSibling<EnumGenerator>(package_dir, java_package_, in GenerateSiblings()
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_generator.cc170 string package_dir = in Generate() local
172 if (!package_dir.empty()) package_dir += "/"; in Generate()
177 string java_filename = package_dir; in Generate()
190 file_generator.GenerateSiblings(package_dir, output_directory, &all_files); in Generate()
Djavamicro_file.cc196 static void GenerateSibling(const string& package_dir, in GenerateSibling() argument
202 string filename = package_dir + descriptor->name() + ".java"; in GenerateSibling()
222 void FileGenerator::GenerateSiblings(const string& package_dir, in GenerateSiblings() argument
227 GenerateSibling<MessageGenerator>(package_dir, java_package_, in GenerateSiblings()
/external/python/cpython3/Lib/test/
Dtest_pkgimport.py29 self.package_dir = os.path.join(self.test_dir,
31 os.mkdir(self.package_dir)
32 create_empty_file(os.path.join(self.package_dir, '__init__.py'))
33 self.module_path = os.path.join(self.package_dir, 'foo.py')
Dtest_pkgutil.py36 package_dir = os.path.join(self.dirname, pkg)
37 os.mkdir(package_dir)
39 f = open(os.path.join(package_dir, '__init__.py'), "wb")
42 f = open(os.path.join(package_dir, 'res.txt'), "wb")
45 os.mkdir(os.path.join(package_dir, 'sub'))
46 f = open(os.path.join(package_dir, 'sub', 'res.txt'), "wb")
/external/protobuf/src/google/protobuf/compiler/java/
Djava_file.cc527 static void GenerateSibling(const string& package_dir, in GenerateSibling() argument
535 string filename = package_dir + descriptor->name() + name_suffix + ".java"; in GenerateSibling()
556 void FileGenerator::GenerateSiblings(const string& package_dir, in GenerateSiblings() argument
564 GenerateSibling<EnumGenerator>(package_dir, java_package_, in GenerateSiblings()
572 GenerateSibling<EnumLiteGenerator>(package_dir, java_package_, in GenerateSiblings()
581 GenerateSibling<MessageGenerator>(package_dir, java_package_, in GenerateSiblings()
588 GenerateSibling<MessageGenerator>(package_dir, java_package_, in GenerateSiblings()
598 GenerateSibling<ServiceGenerator>(package_dir, java_package_, in GenerateSiblings()
Djava_generator.cc137 string package_dir = JavaPackageToDir(file_generator->java_package()); in Generate() local
139 string java_filename = package_dir; in Generate()
151 file_generator->GenerateSiblings(package_dir, context, &all_files); in Generate()
Djava_shared_code_generator.cc65 string package_dir = JavaPackageToDir(java_package); in Generate() local
70 string filename = package_dir + classname + ".java"; in Generate()
Djava_helpers.cc185 string package_dir = in JavaPackageToDir() local
187 if (!package_dir.empty()) package_dir += "/"; in JavaPackageToDir()
188 return package_dir; in JavaPackageToDir()
/external/python/cpython2/Lib/distutils/tests/
Dtest_build_ext.py52 dist.package_dir = self.tmp_dir
314 build_py.package_dir = {'': 'bar'}
339 cmd.distribution.package_dir = {'': 'src'}
355 build_py.package_dir = {}
375 cmd.distribution.package_dir = {'': 'src'}
400 cmd.distribution.package_dir = {'': 'src'}
509 dist.package_dir = self.tmp_dir
Dsetuptools_build_ext.py60 package_dir = build_py.get_package_dir(package)
61 dest_filename = os.path.join(package_dir,os.path.basename(filename))
72 self.write_stub(package_dir or os.curdir, ext, True)
/external/python/setuptools/setuptools/tests/
Dtest_config.py31 package_dir, init_file = make_package_dir('fake_package', tmpdir)
42 return package_dir, config
358 assert dist.package_dir == {'': 'src', 'b': 'c'}
428 assert dist.package_dir == {'': 'src', 'b': 'c'}
/external/python/cpython2/Doc/distutils/
Dexamples.rst107 package_dir={'': 'src'},
133 need to use the ``package_dir`` option again. For example, if the
148 package_dir={'foobar': 'src'},
166 package_dir={'foobar': ''},
173 but any entries in ``package_dir`` automatically extend to sub-packages.
203 ``package_dir`` has no effect on where extension source files are found;
/external/tensorflow/tensorflow/tools/lib_package/
DBUILD66 package_dir = "include/tensorflow/c",
80 package_dir = "include/tensorflow/c/eager",
98 package_dir = "lib",
114 package_dir = "include/tensorflow/c",
/external/autotest/utils/
Dbuild_externals.py64 package_dir = os.path.join(top_of_tree, PACKAGE_DIR)
79 package_dir, install_dir, set(options.names_to_check))
/external/python/cpython3/Doc/distutils/
Dexamples.rst107 package_dir={'': 'src'},
133 need to use the ``package_dir`` option again. For example, if the
148 package_dir={'foobar': 'src'},
166 package_dir={'foobar': ''},
173 but any entries in ``package_dir`` automatically extend to sub-packages.
203 ``package_dir`` has no effect on where extension source files are found;
/external/python/cpython3/Lib/distutils/tests/
Dtest_build_ext.py70 dist.package_dir = self.tmp_dir
355 build_py.package_dir = {'': 'bar'}
384 cmd.distribution.package_dir = {'': 'src'}
400 build_py.package_dir = {}
488 dist.package_dir = self.tmp_dir

123