예제 #1
0
 def unpack(self):
     rmdir(self.pkgroot)
     mkdir(self.pkgroot)
     unpack_file(self._pkg.path, self.pkgroot)
     udir = os.path.join(self.pkgroot, self._dirname)
     for stg in self.staged:
         stg.basedir = udir
예제 #2
0
    def unpack(self):
        pypi = PyPIMetadata(self.__PKGNAME)
        self.setversion(pypi.version)

        rmdir(self.pkgroot)
        mkdir(self.pkgroot)
        pipinstall('%s==%s' % (self.__PKGNAME, pypi.version), self.pkgroot)
예제 #3
0
 def clean(self, real=False):
     """Clean up the package."""
     self._setup()
     rmdir(self.pkgroot)
     for stg in self.staged:
         stg.clean()
     if real:
         rmdir(os.path.join(Globals.downloadroot, self.name))
예제 #4
0
 def unpack(self):
     rmdir(self.pkgroot)
     mkdir(self.pkgroot)
     copy(self._hib3.path,
          os.path.join(self.pkgroot, 'nuodb-hibernate-hib3.jar'))
     copy(self._hib5.path,
          os.path.join(self.pkgroot, 'nuodb-hibernate-hib5.jar'))
     savefile(os.path.join(self.pkgroot, 'LICENSE.txt'),
              self.getlicense('3BSD'))
예제 #5
0
 def _clone(self):
     # Don't keep around any half-completed repos
     rmdir(self.path)
     mkdir(os.path.dirname(self.path))
     run([self._git, 'clone', '--recursive', self.url, self.path])
예제 #6
0
 def clean(self):
     rmfile(self.stagefile)
     rmdir(self.stagedir)
예제 #7
0
파일: jdbc.py 프로젝트: nuodb/nuodb-client
 def unpack(self):
     rmdir(self.pkgroot)
     mkdir(self.pkgroot)
     copy(self._jar.path, self.pkgroot)
     savefile(os.path.join(self.pkgroot, 'LICENSE.txt'),
              self.getlicense('3BSD'))
예제 #8
0
 def unpack(self):
     rmdir(self.pkgroot)
     mkdir(self.pkgroot)
     unpack_file(self._zip.path, self.pkgroot)