本文整理汇总了Python中setuptools.package_index.PackageIndex.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python PackageIndex.__init__方法的具体用法?Python PackageIndex.__init__怎么用?Python PackageIndex.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类setuptools.package_index.PackageIndex
的用法示例。
在下文中一共展示了PackageIndex.__init__方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from setuptools.package_index import PackageIndex [as 别名]
# 或者: from setuptools.package_index.PackageIndex import __init__ [as 别名]
def __init__(self, index_url=["http://pypi.python.org/simple"], hosts=("*",), *args, **kw):
self.index_urls = []
if type(index_url) is list:
BasePackageIndex.__init__(self, index_url[0], hosts, *args, **kw)
for url in index_url:
self.index_urls.append(url + "/"[: not url.endswith("/")])
else:
BasePackageIndex.__init__(self, index_url, hosts, *args, **kw)
self.index_urls.append(index_url)
示例2: __init__
# 需要导入模块: from setuptools.package_index import PackageIndex [as 别名]
# 或者: from setuptools.package_index.PackageIndex import __init__ [as 别名]
def __init__(self, *args, **kwargs):
PackageIndex.__init__(self, *args, **kwargs)
self.to_scan = dists
示例3: __init__
# 需要导入模块: from setuptools.package_index import PackageIndex [as 别名]
# 或者: from setuptools.package_index.PackageIndex import __init__ [as 别名]
def __init__(self, index_url):
PackageIndex.__init__(self, index_url)
self.platform = None
# It is necessary blow away local caches in order to not pick up stuff in site-packages.
self._distmap = {}
self._cache = {}
示例4: __init__
# 需要导入模块: from setuptools.package_index import PackageIndex [as 别名]
# 或者: from setuptools.package_index.PackageIndex import __init__ [as 别名]
def __init__(self, *args, **kwargs):
PackageIndex.__init__(self, *args, **kwargs)
self.debug_msgs = []
self.info_msgs = []
self.warn_msgs = []
示例5: __init__
# 需要导入模块: from setuptools.package_index import PackageIndex [as 别名]
# 或者: from setuptools.package_index.PackageIndex import __init__ [as 别名]
def __init__(self, *a, **k):
PackageIndex.__init__(self, *a, **k)
self.urls = set()
示例6: __init__
# 需要导入模块: from setuptools.package_index import PackageIndex [as 别名]
# 或者: from setuptools.package_index.PackageIndex import __init__ [as 别名]
def __init__(self, index_url):
PackageIndex.__init__(self, index_url)
self.platform = None