Switch to python3
This commit is contained in:
parent
531041e89a
commit
9ba4b6a91a
5286 changed files with 677347 additions and 576888 deletions
11
Darwin/lib/python3.4/site-packages/setuptools/py31compat.py
Normal file
11
Darwin/lib/python3.4/site-packages/setuptools/py31compat.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
__all__ = ['get_config_vars', 'get_path']
|
||||
|
||||
try:
|
||||
# Python 2.7 or >=3.2
|
||||
from sysconfig import get_config_vars, get_path
|
||||
except ImportError:
|
||||
from distutils.sysconfig import get_config_vars, get_python_lib
|
||||
def get_path(name):
|
||||
if name not in ('platlib', 'purelib'):
|
||||
raise ValueError("Name must be purelib or platlib")
|
||||
return get_python_lib(name=='platlib')
|
||||
Loading…
Add table
Add a link
Reference in a new issue