Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(79)  |  Call(79)  |  Derive(0)  |  Import(0)
Copy a file respecting verbose, dry-run and force flags.  (The
former two default to whatever is in the Distribution object, and
the latter defaults to false for commands that don't define it.)

src/p/d/pdb-clone-1.5/setup.py   pdb-clone(Download)
    def copy_file(self, infile, outfile, preserve_mode=1, preserve_times=1,
            link=None, level=1):
        return distutils.core.Command.copy_file(self, infile, outfile,
                preserve_mode=preserve_mode, preserve_times=preserve_times,
                link=None, level=level)

src/d/i/digsby-HEAD/installer/py2exe/py2exe/build_exe.py   digsby(Download)
            if self.bundle_files > 2: # don't bundle pyds and dlls
                dst = os.path.join(self.lib_dir, (item.__pydfile__))
                self.copy_file(src, dst, preserve_mode=0)
                self.lib_files.append(dst)
            else:
                else:
                    dst = os.path.basename(src)
                self.copy_file(src, os.path.join(self.collect_dir, dst), preserve_mode=0)
                self.compiled_files.append(dst)
 
            else:
                dst = os.path.join(self.lib_dir, base)
            _, copied = self.copy_file(dll, dst, preserve_mode=0)
            if not self.dry_run and copied and base.lower() == python_dll.lower():
                # If we actually copied pythonxy.dll, we have to patch it.
                else:
                    dst = os.path.join(self.exe_dir, base)
                _, copied = self.copy_file(dll, dst, preserve_mode=0)
                if not self.dry_run and copied and base.lower() == python_dll.lower():
                    # If we actually copied pythonxy.dll, we have to
 
            dst = os.path.join(self.collect_dir, os.path.basename(dll))
            self.copy_file(dll, dst, preserve_mode=0)
            # Make sure they will be included into the zipfile.
            self.compiled_files.append(os.path.basename(dst))

src/f/e/FeedNotifier-HEAD/patch/build_exe.py   FeedNotifier(Download)
            if self.bundle_files > 2: # don't bundle pyds and dlls
                dst = os.path.join(self.lib_dir, (item.__pydfile__))
                self.copy_file(src, dst, preserve_mode=0)
                self.lib_files.append(dst)
            else:
                else:
                    dst = os.path.basename(src)
                self.copy_file(src, os.path.join(self.collect_dir, dst), preserve_mode=0)
                self.compiled_files.append(dst)
 
            else:
                dst = os.path.join(self.lib_dir, base)
            _, copied = self.copy_file(dll, dst, preserve_mode=0)
            if not self.dry_run and copied and base.lower() == python_dll.lower():
                # If we actually copied pythonxy.dll, we have to patch it.
                else:
                    dst = os.path.join(self.exe_dir, base)
                _, copied = self.copy_file(dll, dst, preserve_mode=0)
                if not self.dry_run and copied and base.lower() == python_dll.lower():
                    # If we actually copied pythonxy.dll, we have to
 
            dst = os.path.join(self.collect_dir, os.path.basename(dll))
            self.copy_file(dll, dst, preserve_mode=0)
            # Make sure they will be included into the zipfile.
            self.compiled_files.append(os.path.basename(dst))

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120727105608/AAAPackageDev/setup.py   Chocolatey-Packages(Download)
            else:
                dest = os.path.join(base_dir, file)
                self.copy_file(file, dest, link=link)
 
        self.distribution.metadata.write_pkg_info(base_dir)

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120706164234/AAAPackageDev/setup.py   Chocolatey-Packages(Download)
            else:
                dest = os.path.join(base_dir, file)
                self.copy_file(file, dest, link=link)
 
        self.distribution.metadata.write_pkg_info(base_dir)

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120520162633/AAAPackageDev/setup.py   Chocolatey-Packages(Download)
            else:
                dest = os.path.join(base_dir, file)
                self.copy_file(file, dest, link=link)
 
        self.distribution.metadata.write_pkg_info(base_dir)

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120426035411/PowerShell/setup.py   Chocolatey-Packages(Download)
            else:
                dest = os.path.join(base_dir, file)
                self.copy_file(file, dest, link=link)
 
        self.distribution.metadata.write_pkg_info(base_dir)

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120331054222/AAAPackageDev/setup.py   Chocolatey-Packages(Download)
            else:
                dest = os.path.join(base_dir, file)
                self.copy_file(file, dest, link=link)
 
        self.distribution.metadata.write_pkg_info(base_dir)

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Packages/PowershellUtils/setup.py   Chocolatey-Packages(Download)
            else:
                dest = os.path.join(base_dir, file)
                self.copy_file(file, dest, link=link)
 
        self.distribution.metadata.write_pkg_info(base_dir)

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Packages/PowerShell/setup.py   Chocolatey-Packages(Download)
            else:
                dest = os.path.join(base_dir, file)
                self.copy_file(file, dest, link=link)
 
        self.distribution.metadata.write_pkg_info(base_dir)

  1 | 2 | 3 | 4 | 5 | 6  Next