witty-crayon-22786
04/26/2016, 6:32 PMwitty-crayon-22786
04/26/2016, 7:08 PMwitty-crayon-22786
04/26/2016, 7:09 PMwitty-crayon-22786
04/26/2016, 7:10 PMBugs
fieldbillowy-beach-68498
04/26/2016, 7:10 PMbillowy-beach-68498
04/26/2016, 7:10 PMbillowy-beach-68498
04/26/2016, 7:11 PMwitty-crayon-22786
04/26/2016, 7:11 PMwitty-crayon-22786
04/26/2016, 7:12 PMbillowy-beach-68498
04/26/2016, 7:13 PMbillowy-beach-68498
04/26/2016, 7:14 PMwitty-crayon-22786
04/26/2016, 7:14 PMwitty-crayon-22786
04/26/2016, 7:14 PMwitty-crayon-22786
04/26/2016, 7:15 PMwitty-crayon-22786
04/26/2016, 7:15 PMbillowy-beach-68498
04/26/2016, 7:16 PMwitty-crayon-22786
04/26/2016, 7:18 PMbillowy-beach-68498
04/26/2016, 7:20 PMbillowy-beach-68498
04/26/2016, 7:33 PMwitty-crayon-22786
04/26/2016, 7:34 PMbillowy-beach-68498
04/26/2016, 7:35 PMwitty-crayon-22786
04/26/2016, 9:33 PMwitty-crayon-22786
04/26/2016, 9:33 PMbillowy-beach-68498
04/26/2016, 9:35 PMbillowy-beach-68498
04/26/2016, 9:37 PMwitty-crayon-22786
04/26/2016, 9:38 PMbillowy-beach-68498
04/26/2016, 9:39 PMbillowy-beach-68498
04/26/2016, 9:39 PMwide-energy-11069
04/27/2016, 12:27 AMclass Collection(object):
@classmethod
@memoized
def of(cls, ext):
type_name = b'Collection({!r})'.format(ext)
class_dict = {'ext': ext,
# # We need custom serialization for the dynamic class type.
# '__reduce__': lambda self: (_create_sources, ext)
}
ext_type = type(type_name, (cls, datatype("{}s".format(ext.__name__), ['dependencies'])), class_dict)
# Expose the custom class type at the module level to be pickle compatible.
setattr(sys.modules[cls.__module__], type_name, ext_type)
return ext_type
Files = Collection.of(File)
Dirs = Collection.of(Dir)
def create_fs_tasks():
"""Creates tasks that consume the native filesystem Node type."""
return [
# Glob execution.
(Stats,
[SelectProjection(Stats, Dir, ('directory',), PathWildcard),
Select(PathWildcard)],
apply_path_wildcard),…
wide-energy-11069
04/27/2016, 12:28 AM# class Files(datatype('Files', ['dependencies'])):
# """A set of File objects.""”
into the Collection