Browse Source

Converting to use 'use_2to3' parameter for building on Python 3, as this apparently would also support the include_package_data parameter

pull/8/head
Jason R. Coombs 14 years ago
parent
commit
1187f6e14b
  1. 7
      setup.py

7
setup.py

@ -13,11 +13,6 @@ class DisabledTestCommand(Command):
def __init__(self, dist): def __init__(self, dist):
raise RuntimeError("test command not supported on svg.charts. Use setup.py nosetests instead") raise RuntimeError("test command not supported on svg.charts. Use setup.py nosetests instead")
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
from distutils.command.build_py import build_py
_this_dir = os.path.dirname(__file__) _this_dir = os.path.dirname(__file__)
_long_description = open('readme.txt').read().strip() _long_description = open('readme.txt').read().strip()
@ -56,11 +51,11 @@ setup_params = dict(
# see http://code.google.com/p/python-nose/issues/detail?id=219 # see http://code.google.com/p/python-nose/issues/detail?id=219
cmdclass=dict( cmdclass=dict(
test=DisabledTestCommand, test=DisabledTestCommand,
build_py=build_py,
), ),
setup_requires=[ setup_requires=[
'hgtools', 'hgtools',
], ],
use_2to3 = True,
) )
if __name__ == '__main__': if __name__ == '__main__':

Loading…
Cancel
Save