Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
setup.py: run 2to3 if running under Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mruffalo committed Apr 30, 2013
1 parent 4ac0bed commit 761eb50
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@

version = '0.4.5'

# Run 2to3 builder if we're on Python 3.x, from
# http://wiki.python.org/moin/PortingPythonToPy3k
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
# 2.x
from distutils.command.build_py import build_py
command_classes = {'build_py': build_py}

setup(name='pyfasta',
version=version,
description=\
Expand All @@ -27,4 +36,5 @@
entry_points={
'console_scripts': ['pyfasta = pyfasta:main']
},
cmdclass=command_classes,
)

0 comments on commit 761eb50

Please sign in to comment.