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

Skip to content

Commit 314e602

Browse files
committed
Merge pull request matplotlib#1387 from dmcdougall/fix_egg_dev
Make setupegg symlink correct dateutil library
2 parents d5109fa + 79c60cb commit 314e602

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

setupegg.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,19 @@
22
Poor man's setuptools script...
33
"""
44

5+
import os
6+
import sys
57
from setuptools import setup
8+
9+
# Setupegg assumes the install tree and source tree are exactly the same. Since
10+
# this is not the case, symlink the correct dateutil dir depending on which
11+
# version of python is used
12+
if not os.path.isdir('lib/dateutil'):
13+
if sys.version_info[0] >= 3:
14+
os.symlink('dateutil_py3', 'lib/dateutil')
15+
else:
16+
os.symlink('dateutil_py2', 'lib/dateutil')
17+
618
execfile('setup.py',
719
{'additional_params' :
820
{'namespace_packages' : ['mpl_toolkits'],

0 commit comments

Comments
 (0)