Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e65956

Browse files
committed
Merge pull request #1234 from cgohlke/patch-2
Fix 2to3 and packaging of dateutil
2 parents 284fc0c + 5ee5223 commit 3e65956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def add_pytz():
214214
def add_dateutil():
215215
packages.append('dateutil')
216216
packages.append('dateutil.zoneinfo')
217-
package_data['dateutil'] = ['zoneinfo/zoneinfo*.tar.*']
217+
package_data['dateutil'] = ['zoneinfo/*.tar.gz']
218218
if sys.version_info[0] >= 3:
219219
package_dir['dateutil'] = 'lib/dateutil_py3'
220220
else:
@@ -263,7 +263,7 @@ def add_six():
263263

264264
if sys.version_info[0] >= 3:
265265
def should_2to3(file, root):
266-
file = os.path.abspath(file)[len(os.path.abspath(root)):]
266+
file = os.path.abspath(file)[len(os.path.abspath(root))+1:]
267267
if ('py3' in file or
268268
file.startswith('pytz') or
269269
file.startswith('dateutil') or

0 commit comments

Comments
 (0)