Mercurial > hg > PaInt
comparison paint/package.py @ 11:c41a946d34af
stub out info method
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 24 Feb 2012 15:05:08 -0800 |
parents | d63ae03cc300 |
children | ceb8c69a16f3 |
comparison
equal
deleted
inserted
replaced
10:d63ae03cc300 | 11:c41a946d34af |
---|---|
42 | 42 |
43 return self.src | 43 return self.src |
44 | 44 |
45 def fetch(self): | 45 def fetch(self): |
46 """fetch from remote source to a temporary file""" | 46 """fetch from remote source to a temporary file""" |
47 fd, filename = tmpfile.mkstemp() | 47 fd, filename = tempfile.mkstemp() |
48 resource = urllib.urlopen(self.src) | 48 resource = urllib2.urlopen(self.src) |
49 os.write(fd, resource.read()) | 49 os.write(fd, resource.read()) |
50 os.close(fd) | 50 os.close(fd) |
51 return filename | 51 return filename |
52 | 52 |
53 def unpack(self, archive): | 53 def unpack(self, archive): |
69 if self._tmppath: | 69 if self._tmppath: |
70 shutil.rmtree(self._tmppath) | 70 shutil.rmtree(self._tmppath) |
71 self._tmppath = None | 71 self._tmppath = None |
72 | 72 |
73 __del__ = cleanup | 73 __del__ = cleanup |
74 | |
75 def info(self): | |
76 path = self.path() | |
77 assert os.path.exists(os.path.join(path, 'setup.py')) | |
78 | |
79 def dependencies(self): | |
80 path = self.path() |