Ejemplo n.º 1
0
 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 = os.path.splitext(pyxf)[0] + ".c"
         if os.path.isfile(cf):
             self.filelist.exclude_pattern(pattern=cf)
Ejemplo n.º 2
0
Archivo: setup.py Proyecto: vasole/fisx
    def prune_file_list(self):
        sdist.prune_file_list(self)

        # this is for Cython files specifically: remove C & html files
        search_root = topLevel
        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")
Ejemplo n.º 3
0
 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=PROJECT + "ext")
     for pyxf in glob.glob(PROJECT + "ext/*.pyx"):
         cf = os.path.splitext(pyxf)[0] + ".c"
         if os.path.isfile(cf):
             self.filelist.exclude_pattern(pattern=cf)
Ejemplo n.º 4
0
Archivo: setup.py Proyecto: kif/UPBL09a
    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")
Ejemplo n.º 5
0
    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")