aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkg_resources.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 1a9b594c..6e040d08 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -1622,8 +1622,8 @@ class EntryPoint(object):
def __repr__(self):
return "EntryPoint.parse(%r)" % str(self)
- def load(self, require=True):
- if require: self.require()
+ def load(self, require=True, env=None, installer=None):
+ if require: self.require(env, installer)
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
for attr in self.attrs:
try:
@@ -1632,11 +1632,11 @@ class EntryPoint(object):
raise ImportError("%r has no %r attribute" % (entry,attr))
return entry
- def require(self):
+ def require(self, env=None, installer=None):
if self.extras and not self.dist:
raise UnknownExtra("Can't require() without a distribution", self)
map(working_set.add,
- working_set.resolve(self.dist.requires(self.extras)))
+ working_set.resolve(self.dist.requires(self.extras),env,installer))
#@classmethod
def parse(cls, src, dist=None):