setuptools はひでえコードだった
#import distutils.log; distutils.log.set_verbosity(2) from setuptools.package_index import PackageIndex class PackageIndex(PackageIndex): def can_add(self, dist): """deny local installed packages""" if os.path.exists(dist.location): return False return super(PackageIndex, self).can_add(dist) package_name = 'chardet' tmpdir = tempfile.mkdtemp(prefix='python-') filename = PackageIndex().download(package_name, tmpdir)