Permalink
Browse files

Fix 2to3 and packaging of dateutil

  • Loading branch information...
1 parent 284fc0c commit 5ee52230fc7a218987962e42edc1ea4250dd3e56 @cgohlke cgohlke committed Sep 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 setup.py
View
@@ -214,7 +214,7 @@ def add_pytz():
def add_dateutil():
packages.append('dateutil')
packages.append('dateutil.zoneinfo')
- package_data['dateutil'] = ['zoneinfo/zoneinfo*.tar.*']
+ package_data['dateutil'] = ['zoneinfo/*.tar.gz']
if sys.version_info[0] >= 3:
package_dir['dateutil'] = 'lib/dateutil_py3'
else:
@@ -263,7 +263,7 @@ def add_six():
if sys.version_info[0] >= 3:
def should_2to3(file, root):
- file = os.path.abspath(file)[len(os.path.abspath(root)):]
+ file = os.path.abspath(file)[len(os.path.abspath(root))+1:]
if ('py3' in file or
file.startswith('pytz') or
file.startswith('dateutil') or

0 comments on commit 5ee5223

Please sign in to comment.