diff paint/package.py @ 33:5efb61fde8aa

improved docstring
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 30 Mar 2012 13:43:23 -0700
parents f2e31ac03bb3
children acb2f4896291
line wrap: on
line diff
--- a/paint/package.py	Fri Mar 30 13:40:32 2012 -0700
+++ b/paint/package.py	Fri Mar 30 13:43:23 2012 -0700
@@ -22,6 +22,10 @@
 __all__ = ['Package']
 
 class Package(object):
+    """
+    class for python package introspection.
+    constructor takes the package 'src'
+    """
 
     def __init__(self, src):
         self.src = src
@@ -29,6 +33,7 @@
         # ephemeral data
         self._tmppath = None
         self._egg_info_path = None
+        self._build_path = None
 
         # TODO: list of temporary files/directories to be deleted
 
@@ -182,11 +187,14 @@
     def extension(self):
         """filename extension"""
 
-    def repackage(self):
+    def repackage(self, destination):
         """
         repackage the package to ensure its actually in the right form
         """
 
+        if self._build_path:
+            return self._build_path
+
     def download(self, directory):
         """download a package and all its dependencies using pip"""
         if not os.path.exists(directory):