def prune_file_list(self): sdist.prune_file_list(self) directories = ["third-party/fisx/python/cython", "PyMca5/PyMcaGraph/ctools/_ctools/cython", "PyMca5/PyMcaPhysics/xas/_xas/cython"] print("Removing files for debian source distribution") for directory in directories: for pyxfile in glob.glob(os.path.join(directory, "*.pyx")): for extension in [".c", ".cpp"]: cf = os.path.splitext(pyxfile)[0] + extension if os.path.isfile(cf): print("Excluding file %s" % cf) self.filelist.exclude_pattern(pattern=cf)
def prune_file_list(self): sdist.prune_file_list(self) directories = ["third-party/fisx/python/cython", "PyMca5/PyMcaGraph/ctools/_ctools/cython", "PyMca5/PyMcaPhysics/xas/_xas/cython"] print("Removing files for debian source distribution") for directory in directories: for pyxfile in glob.glob(os.path.join(directory, "*.pyx")): for extension in [".c", ".cpp"]: cf = os.path.splitext(pyxfile)[0] + extension if os.path.isfile(cf): print("Excluding file %s" % cf) self.filelist.exclude_pattern(pattern=cf)
def prune_file_list(self): sdist.prune_file_list(self) to_remove = ["doc/build", "doc/pdf", "doc/html", "pylint", "epydoc"] print("Removing files for debian") for rm in to_remove: self.filelist.exclude_pattern(pattern="*", anchor=False, prefix=rm) # this is for Cython files specifically: remove C & html files search_root = os.path.dirname(os.path.abspath(__file__)) for root, _, files in os.walk(search_root): for afile in files: if os.path.splitext(afile)[1].lower() == ".pyx": base_file = os.path.join(root, afile)[len(search_root) + 1:-4] self.filelist.exclude_pattern(pattern=base_file + ".c") self.filelist.exclude_pattern(pattern=base_file + ".cpp") self.filelist.exclude_pattern(pattern=base_file + ".html")
def prune_file_list(self): sdist.prune_file_list(self) to_remove = ["doc/build", "doc/pdf", "doc/html", "pylint", "epydoc"] print("Removing files for debian") for rm in to_remove: self.filelist.exclude_pattern(pattern="*", anchor=False, prefix=rm) # this is for Cython files specifically: remove C & html files search_root = os.path.dirname(os.path.abspath(__file__)) for root, _, files in os.walk(search_root): for afile in files: if os.path.splitext(afile)[1].lower() == ".pyx": base_file = os.path.join(root, afile)[len(search_root) + 1:-4] self.filelist.exclude_pattern(pattern=base_file + ".c") self.filelist.exclude_pattern(pattern=base_file + ".cpp") self.filelist.exclude_pattern(pattern=base_file + ".html")
def prune_file_list(self): sdist.prune_file_list(self) to_remove = ["doc/build", "doc/pdf", "doc/html", "pylint", "epydoc"] print("Removing files for debian") for rm in to_remove: self.filelist.exclude_pattern(pattern="*", anchor=False, prefix=rm) #this is for Cython files specifically self.filelist.exclude_pattern(pattern="*.html", anchor=True, prefix="src") for pyxf in glob.glob("src/*.pyx"): cf = op.splitext(pyxf)[0] + ".c" if op.isfile(cf): self.filelist.exclude_pattern(pattern=cf) for ex in ["argparse", "gzip"]: self.filelist.exclude_pattern(pattern=ex + ".py", anchor=True, prefix="fabio-src") print("Adding test_files for debian") self.filelist.allfiles += (glob.glob("test/testimages/*")) self.filelist.include_pattern(pattern="*.bz2", anchor=True, prefix="test/testimages")
def prune_file_list(self): sdist.prune_file_list(self) to_remove = ["doc/build", "doc/pdf", "doc/html", "pylint", "epydoc"] print("Removing files for debian") for rm in to_remove: self.filelist.exclude_pattern(pattern="*", anchor=False, prefix=rm) #this is for Cython files specifically self.filelist.exclude_pattern(pattern="*.html", anchor=True, prefix="src") for pyxf in glob.glob("src/*.pyx"): cf = op.splitext(pyxf)[0] + ".c" if op.isfile(cf): self.filelist.exclude_pattern(pattern=cf) for ex in ["argparse", "gzip"]: self.filelist.exclude_pattern(pattern=ex + ".py", anchor=True, prefix="fabio-src") print("Adding test_files for debian") self.filelist.allfiles += (glob.glob("test/testimages/*")) self.filelist.include_pattern(pattern="*.bz2", anchor=True, prefix="test/testimages")
def prune_file_list(self): sdist.prune_file_list(self) self.filelist.exclude_pattern(r'.*.pyc', is_regex=1)
def prune_file_list(self): sdist.prune_file_list(self) self.filelist.exclude_pattern(r'.*.pyc', is_regex=1)
def prune_file_list(self): " exclude .svn versioning infos " sdist.prune_file_list(self) self.filelist.exclude_pattern(r'/(\.svn)/.*', is_regex=1)