[Python-Dev] 2to3 porting HOWTO: setup.py question (original) (raw)
anatoly techtonik techtonik at gmail.com
Sun Jul 22 10:21:38 CEST 2012
- Previous message: [Python-Dev] test_hashlib
- Next message: [Python-Dev] 2to3 porting HOWTO: setup.py question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
http://docs.python.org/py3k/howto/pyporting.html#during-installation
What's the point in making implicit Python 3 check here: try: # Python 3 from distutils.command.build_py import build_py_2to3 as build_py except ImportError: # Python 2 from distutils.command.build_py import build_py
instead of explicit check like: import sys if sys.version_info[0] >= 3: from distutils.command.build_py import build_py_2to3 as build_py
?
anatoly t.
- Previous message: [Python-Dev] test_hashlib
- Next message: [Python-Dev] 2to3 porting HOWTO: setup.py question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]