aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authortarek <none@none>2009-12-02 16:47:26 +0100
committertarek <none@none>2009-12-02 16:47:26 +0100
commit67b9811dc7c6b59e5815e5b27620ef3e416488ac (patch)
tree230676503521b0e822e8781a829140662a205694 /setuptools/command/easy_install.py
parent8159dbb1f94821a8ec481662a87914826fb8c7c4 (diff)
downloadexternal_python_setuptools-67b9811dc7c6b59e5815e5b27620ef3e416488ac.tar.gz
external_python_setuptools-67b9811dc7c6b59e5815e5b27620ef3e416488ac.tar.bz2
external_python_setuptools-67b9811dc7c6b59e5815e5b27620ef3e416488ac.zip
easy_install doesn't use a setup.cfg located in the working dir - fixes #99
--HG-- branch : distribute extra : rebase_source : 0ddcfcf2eb8ef650c248a1d5d86fe1b95100df10
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index de6ea945..fb8cd74f 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1674,7 +1674,6 @@ def bootstrap():
import setuptools; argv0 = os.path.dirname(setuptools.__path__[0])
sys.argv[0] = argv0; sys.argv.append(argv0); main()
-
def main(argv=None, **kw):
from setuptools import setup
from setuptools.dist import Distribution
@@ -1699,9 +1698,16 @@ usage: %(script)s [options] requirement_or_url ...
class DistributionWithoutHelpCommands(Distribution):
common_usage = ""
+
def _show_help(self,*args,**kw):
with_ei_usage(lambda: Distribution._show_help(self,*args,**kw))
+ def find_config_files(self):
+ files = Distribution.find_config_files(self)
+ if 'setup.cfg' in files:
+ files.remove('setup.cfg')
+ return files
+
if argv is None:
argv = sys.argv[1:]