Skip to content

Commit

Permalink
Merge pull request #1234 from cgohlke/patch-2
Browse files Browse the repository at this point in the history
Fix 2to3 and packaging of dateutil
  • Loading branch information
mdboom committed Sep 12, 2012
2 parents 284fc0c + 5ee5223 commit 3e65956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3e65956

Please sign in to comment.